Skip to content

Instantly share code, notes, and snippets.

@Zoramite
Created March 14, 2012 21:34
Show Gist options
  • Save Zoramite/2039690 to your computer and use it in GitHub Desktop.
Save Zoramite/2039690 to your computer and use it in GitHub Desktop.
Git Bulk Aliases
alias gitstatus='find . -maxdepth 2 -path "*/.git" -print -execdir git status ";"'
alias gitfetch='find . -maxdepth 2 -path "*/.git" -print -execdir git fetch origin ";"'
alias gitpull='find . -maxdepth 2 -path "*/.git" -print -execdir git pull ";"'
alias gitpush='find . -maxdepth 2 -path "*/.git" -print -execdir git push ";"'
alias gitprune='find . -maxdepth 2 -path "*/.git" -print -execdir git prune ";"'
alias gitsub='find . -maxdepth 2 -path "*/.git" -print -execdir git submodule update --init --recursive ";"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment