Diário de programador

Códigos, anotações e pensamentos.

Como remover submódulo do GIT

Comments

To remove a submodule you need to:

1. Delete the relevant section from the ".gitmodules" file.
2. Delete the relevant section from ".git/config".
3. Run "git rm --cached path_to_submodule" (no trailing slash).
4. Commit
5. Delete the now untracked submodule files: "rm -rf path_to_submodule"

Fonte

Comments