Created
September 4, 2014 07:51
-
-
Save wojciak/9d6defeac22df96f347f to your computer and use it in GitHub Desktop.
Git branch submodules prior to git 1.8.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule foreach -q --recursive 'branch="$(git config -f $toplevel/.gitmodules submodule.$name.branch)" && git checkout $branch' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment