Created
March 9, 2016 14:36
-
-
Save keithjgrant/704aec982346a8bf78fa to your computer and use it in GitHub Desktop.
Git "log-pretty" alias
This file contains 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
[alias] | |
log-pretty = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(black)%cn%Creset' --abbrev-commit --date=relative |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The bit at the end of the format (
%C(black)%cn%Creset
) prints the name of the author in black—i.e. invisible. This keeps it from cluttering things up too much since I don't usually need it, but you can highlight the text in your terminal to see who the author is.