iamcal.com

Git Cheatsheet

Submodules

To update the ref of a submodule:

cd submodule_dir
git pull
cd ..
git commit submodule_dir
git push

To update downstream checkouts once that's been pushed:

???
git submodule sync
git submodule init
git submodule update