Skip to content

Instantly share code, notes, and snippets.

@waldofe
Last active March 29, 2020 22:27
Show Gist options
  • Save waldofe/22f63e4f37b0ecaee4195fa0fbb00ac7 to your computer and use it in GitHub Desktop.
Save waldofe/22f63e4f37b0ecaee4195fa0fbb00ac7 to your computer and use it in GitHub Desktop.
git plog
[alias]
plog = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
@riscie
Copy link

riscie commented Jun 28, 2017

Thanks!
Addition: Truncate Commit-Messages longer than 140 chars:
[alias] plog = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %<(140,trunc)%s %Cgreen(%cr) %C(bold blue) %an>%Creset' --abbrev-commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment