Git submodules¶
Helper tools¶
- Stale and unmaintained: https://github.com/kollerma/git-submodule-tools
Change submodule url¶
Local¶
edit .gitmodules, change url
git submodule sync && git submodule update --init
git add -u
git commit -m"changes submodule url for…"
git push
On every other checkout dir (i.e. puppet server)¶
Delete a submodule¶
https://stackoverflow.com/a/1260982
local¶
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>