Skip to content

Instantly share code, notes, and snippets.

@devth
devth / .zshrc
Created June 27, 2012 16:43
zshrc git aliases
# Git Aliases
alias gitr='cd `git root`'
alias gpr='git pull --rebase && git --no-pager hist @{1}.. && echo'
alias gpom='git push origin master'
alias gs="git status"
alias gp="echo 'Pushing commits:' && git --no-pager hist HEAD@{upstream}.. && echo '' && git push"
alias gd="git diff"
alias gds="git diff --shortstat"
alias gl="git log"
alias gk="gitx"