How to prevent “git submodule foreach” from exiting on non-zero status

The command

 

will fail, if any of the submodules do not have the branch-that-exists-in-only-some-repos branch.

Solution:

 

Source:

http://twigstechtips.blogspot.dk/2010/12/git-do-status-on-each-submodule-using.html

Start the conversation