Created
June 14, 2017 03:14
-
-
Save luochen1990/7e0af1cdcb504a572b7328c82f200931 to your computer and use it in GitHub Desktop.
User defined Git Command to auto update submodule when checkout branch.
This file contains hidden or 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
#!/bin/sh | |
# add this file to your path so that you can run it as an git command via `git checkoutr xxx` | |
br=$1 | |
test -z $br || git checkout $br | |
git submodule update --init --recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment