Trt Trt
Trt Trt

Reputation: 5532

How can I make a git submodule a normal folder?

I have a project that has a number of submodules and I am trying to make them act as normal folder and not repos. I have deleted the .git/ folder in each of them,but they still act like submodules and when I run a git status they do not seem to show up as untracked files.

Upvotes: 7

Views: 7996

Answers (1)

lungj
lungj

Reputation: 739

The submodule needs to be removed using git rm (this'll remove the submodule's files from your file system). You can then clone the submodule's repository into your repo (using git clone), remove the .git directory in the "submodule"'s directory, and git add!

Upvotes: 4

Related Questions