Last Updated: February 25, 2016
·
640
· bbolli

My Git shortcuts for the bash

Add this to your ~/.bashrc to be even faster with Git!

# git shortcuts
alias g1='git log --oneline --decorate'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gm='gco master'
alias gcp='git cherry-pick -x -e'
alias gd='git diff HEAD'
alias gdi='git diff'
alias gl='git log --decorate'
alias gr='git remote'
alias gs='git -p status -s'
alias gp='git pull'
alias gpr='git pull --rebase'
alias gpu='git push'
alias gst='git stash'