Answer the question
In order to leave comments, you need to log in
How to make a git submodule just a project folder?
There is a project which is stored in GIT.
The project uses several submodules.
myproject
+--dir1
+--dir2
+--dir3 (as git submodule)
+--dir4 (as git submodule)
+--dir5
... You want
to get rid of the submodule, but the dir3 and dir4 folders should remain in the project.
It is required to save the entire history of submodule commits.
How?
Answer the question
In order to leave comments, you need to log in
Delete the submodule, leaving the folder itself:
git submodule deinit dir3
git rm --cached dir3
rm -rf .git/modules/dir3
I won’t tell you the exact instructions, but you need to look towards git subtree
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question