Last Updated: February 25, 2016
· jaccus

tl;dr - aliases for all those common git commands

Sure you can use those .gitconfig aliases but why bother typing git a hundred times a day?

Just add these to your %HOME%\.profile (or ~/.profile if you're "the Unix type") to speed up your Git hacking from Bash shell:

alias gs='git status'
alias gr='git remote -v'
alias ga='git add'
alias gaa='git add -A .'
alias gdh='git diff HEAD'
alias gd='git diff'
alias gc='git commit -m'
alias gcm='git commit -m'
alias gco='git checkout'
alias grom='git rebase origin/master'
alias grod='git rebase origin/develop'
alias gp='git pull --rebase'
alias gr='git rebase'
alias gf='git fetch'
alias gmf='git merge --ff-only'
alias gcp='git cherry-pick'
alias gst='git stash'
alias gstp='git stash pop'
alias gsts='git stash save'
alias glg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"