Skip to content

Instantly share code, notes, and snippets.

@xwmx
Created June 19, 2012 02:21
Show Gist options
  • Select an option

  • Save xwmx/2951957 to your computer and use it in GitHub Desktop.

Select an option

Save xwmx/2951957 to your computer and use it in GitHub Desktop.
git aliases
#==========================================================================
# Git aliases
#==========================================================================
alias g='git'
alias gb='git branch'
alias gba='git branch -a'
alias gstat='git status'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gd='git diff | mate'
alias gl='git pull'
alias gp='git push'
alias glog="git log --all --graph --pretty=format:'%Cred%h%Creset -%C(magenta)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment