Skip to content

Instantly share code, notes, and snippets.

@o1y
Created May 18, 2012 13:18
Show Gist options
  • Select an option

  • Save o1y/2725208 to your computer and use it in GitHub Desktop.

Select an option

Save o1y/2725208 to your computer and use it in GitHub Desktop.
useful git aliases
[alias]
chp = cherry-pick
co = checkout
st = status
ci = commit
di = diff
dc = diff --cached
aa = add --all
head = log -1
# Log display from screencast, with train tracks.
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
# Alternate log display from Scott Chacon
lol = log --pretty=oneline --abbrev-commit --graph --decorate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment