Created
September 16, 2015 14:57
-
-
Save fvztdk/1383ec237480849cf574 to your computer and use it in GitHub Desktop.
Copy a submodule to the father project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm --cached submodule_path # delete reference to submodule HEAD (no trailing slash) | |
git rm .gitmodules # if you have more than one submodules, | |
# you need to edit this file instead of deleting! | |
rm -rf submodule_path/.git # make sure you have backup!! | |
git add submodule_path # will add files instead of commit reference | |
git commit -m "remove submodule" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment