Topics: tools, development
Author: Maitrik
Adding a Submodule to a Repository
git submodule add <url> <destination>
Submodule Basic commands
git submodule status
git submodule init
git submodule update
Update Submodule URLs
git submodule sync
git submodule deinit <submodule location>
git rm -rf <submodule location>
Clone submodule in a cloned repository
git submodule update --remote
git submodule update --init --recursive
git submodule foreach git pull origin master
cd ..
git commit . -m "Updated submodules"
git push
cd components/canvasrunner
<edit>
git commit . -m "Edited"
git push
cd ...
git commit . -m "bumped canvasrunner"
git push
git clone --recursive
cd components/canvasrunner
git submodule update --init