Skip to content

Instantly share code, notes, and snippets.

@robv
Created November 10, 2009 03:58
Show Gist options
  • Save robv/230613 to your computer and use it in GitHub Desktop.
Save robv/230613 to your computer and use it in GitHub Desktop.
My .gitconfig file, contains some handy aliases.
[core]
editor = mate -w
[alias]
undo = !git reset --hard && git clean -n -d -f
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
who = shortlog -s --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment