In message <20101231222438.GA28199@xxxxxxxxxxxxxxxxxxxxx>, Oliver Kullmann writ es: it would be very helpful if somebody could tell me the supposed workflow how to update a submodule (I'm using version 1.7.3.2; the man-page doesn't say much about it). https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial -------------------------------------------------- cd submodule_path git checkout <branchname> git pull cd .. # or otherwise get to the superproject git add submodule_path git commit -m "Updated submodule to latest <branchname>" git submodule update -------------------------------------------------- This (untested) code obviously only works for a single repository. If you want to do it for all repositories, you need something more like the untested: -------------------------------------------------- git submodule foreach git checkout <branchname> git submodule foreach git pull git add -a -m "Updated all submodules to latest <branchname>" git submodule update -------------------------------------------------- If you find yourself doing this continuously, and doing it for all of your submodules, you may way to use gitslave instead of submodules which keeps the branches checked out all of the time so all you need to do is `gits pull`. This may be better, or worse, for you workflow. gitslave (http://gitslave.sf.net) is useful when you control and develop on the subprojects at more of less the same time as the superproject, and furthermore when you typically want to tag, branch, push, pull, etc all repositories at the same time. git-submodule is better when you do not control the subprojects or more specifically wish to fix the subproject at a specific revision even as the subproject changes -Seth Robertson -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html