Skip to content

Instantly share code, notes, and snippets.

@lazamar
Last active December 17, 2018 12:14
Show Gist options
  • Save lazamar/0669c18a20c59a7c10d856e8e9791b6e to your computer and use it in GitHub Desktop.
Save lazamar/0669c18a20c59a7c10d856e8e9791b6e to your computer and use it in GitHub Desktop.
Better Git log
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%Cgreen(%>(14)%cr) %C(bold blue)<%<(17,trunc)%an>%Creset %s %C(yellow)%d%Creset' --abbrev-commit"
@lazamar
Copy link
Author

lazamar commented Dec 17, 2018

Better tags view: (Fixes size of commit messages)

git config --global alias.lgt "log --graph --pretty=format:'%Cred%h%Creset -%Cgreen(%>(14)%cr) %C(bold blue)<%<(17,trunc)%an>%Creset %<(57,trunc)%s %C(yellow)%d%Creset' --abbrev-commit"

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