Last active
October 27, 2015 18:47
-
-
Save geuis/460056be4527ef98db74 to your computer and use it in GitHub Desktop.
Useful git aliases
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
# update all submodules | |
git config --global alias.subupdate 'submodule update --init --recursive' | |
# checkout a branch in each submodule and update it | |
git config --global alias.subpull = submodule foreach git pull origin production | |
# show aliases | |
git config --global alias.alias '!git config -l | grep alias | cut -c 7-' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment