how from git version 1.9.3 (Apple Git -50) on mac, how to remove the git submodule? I read a lot of outdated information, many developers tell me that they will not work. What is the current way? will git deinit pathToSubModule do the trick?
The steps that I thought would work are here , but the comments say they won't.
Let me explain my current situation and what I need. I installed Quick repository and added it as a submodule to my project. This code has already been verified, while others use it. What I need to do now is to develop the same Quick repository and place it in the more secure github that my company has (so this is a completely different private github). After the fork, I want to add this fork as a gitSubmodule and let it replace the current Quick subodule that I installed earlier.
update: I read that the next correct solution in the latest version of git, please confirm?
To remove a submodule added using: git submodule add blah@blah.com:repos/blah.git lib/blah Run: git rm lib/blah That it. For old versions of git (circa ~1.8.5) use: git submodule deinit lib/blah git rm lib/blah git config -f .gitmodules --remove-section submodule.lib/blah
git github git-submodules
j2emanue Apr 24 '15 at 14:24 2015-04-24 14:24
source share