Skip to content

Instantly share code, notes, and snippets.

@geuis
Last active October 27, 2015 18:47
Show Gist options
  • Save geuis/460056be4527ef98db74 to your computer and use it in GitHub Desktop.
Save geuis/460056be4527ef98db74 to your computer and use it in GitHub Desktop.
Useful git aliases
# 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