Skip to content

Instantly share code, notes, and snippets.

@enliven-
Created June 1, 2014 03:15
Show Gist options
  • Save enliven-/47df983d3624985057ca to your computer and use it in GitHub Desktop.
Save enliven-/47df983d3624985057ca to your computer and use it in GitHub Desktop.
pretty print git log
git log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
--pretty="..." defines the format of the output.
%h is the abbreviated hash of the commit
%d are any decorations on that commit (e.g. branch heads or tags)
%ad is the author date
%s is the comment
%an is the author name
--graph informs git to display the commit tree in an ASCII graph layout
--date=short keeps the date format nice and short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment