Skip to content

Instantly share code, notes, and snippets.

@joshdvir
Created July 28, 2011 18:49
Show Gist options
  • Save joshdvir/1112232 to your computer and use it in GitHub Desktop.
Save joshdvir/1112232 to your computer and use it in GitHub Desktop.
Git bash aliases for .bash_profile and .bashrc
# git
alias gl='git pull'
alias gp='git push'
alias gpom='git push origin master'
alias gpos='git push origin staging'
alias push='git co master ; git push origin master ; git co develop ; git push origin develop'
alias pull='git co master ; git pull origin master ; git co develop ; git pull origin develop'
alias gd='git diff'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gb='git branch'
alias gs='git status'
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment