Update submodule to latest commit
cd SUB_DIR git pull <repo> <commit> #example git pull git@github.com:igoumeninja/The-God-Article.git 5985a172aafb53e7d3884f8d6b960b01475a0ea5 cd ../ git add --all git commit git push
Update submodule
The git submodule update command actually tells Git that you want your submodules to each check out the commit already specified in the index of the superproject. If you want to update your submodules to the latest commit available from their remote, you will need to do this directly in the submodules.
So in summary:
git submodule add ssh://bla submoduledir git submodule init
cd submoduledir
git checkout master
git pull
cd ..
git commit -am "Pulled down update to submoduledir"
Or, if you're a busy person:
git submodule foreach git pull origin master
from http://stackoverflow.com/questions/5828324/update-git-submodule-to-latest-commit-on-origin
General
Amazing tool to include other git project into your project. Used for The-God-Article
project (https://github.com/fabinstrument/ney/tree/master/openFrameworks).