Created
June 1, 2014 03:15
-
-
Save enliven-/47df983d3624985057ca to your computer and use it in GitHub Desktop.
pretty print git log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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