Skip to content

Instantly share code, notes, and snippets.

@mtodd
Created February 2, 2011 16:01
Show Gist options
  • Save mtodd/807904 to your computer and use it in GitHub Desktop.
Save mtodd/807904 to your computer and use it in GitHub Desktop.
Put this in ~/.gitconfig
[alias]
st = status
ci = commit
co = checkout
br = branch
b = branch
track = checkout -b
s = stash
d = diff
a = add .
tp = !rake && git push
ptp = !git pull && rake && git push
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment