Skip to content

Instantly share code, notes, and snippets.

@oak-tree
Last active December 14, 2015 10:09
Show Gist options
  • Select an option

  • Save oak-tree/f4c8a75a99e49458cb47 to your computer and use it in GitHub Desktop.

Select an option

Save oak-tree/f4c8a75a99e49458cb47 to your computer and use it in GitHub Desktop.
pretty print for git log
##BASED on http://blog.kfish.org/2010/04/git-lola.html
## more on git log parameters http://git-scm.com/docs/pretty-formats
[alias]
#lol = log --graph --decorate --pretty=oneline --abbrev-commit
lol = log --graph --decorate --pretty=format:'%C(auto) %h %D %s - author: %Cblue %an' --abbrev-commit
#lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lola = log --graph --decorate --pretty=format:'%C(auto) %h %D %s - author: %Cblue %an' --abbrev-commit --all
##credit to on https://plus.google.com/u/0/107195974066798722742
logm = log --decorate=short --pretty=format:'%C(yellow) %h %C(blue) %s %C(reset)(%C(red)by %cN %C(green)on %cD%C(reset))' --merges
logg = log --decorate=short --pretty=format:'%C(yellow) %h %C(blue) %s %C(reset)(%C(red)by %cN %C(green)on %cD%C(reset))' --graph
[color]
branch = auto
diff = auto
interactive = auto
status = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment