Skip to content

Instantly share code, notes, and snippets.

@deoren
Created January 14, 2018 09:04
Show Gist options
  • Save deoren/f56773246b30439ce2a746d1bb90098e to your computer and use it in GitHub Desktop.
Save deoren/f56773246b30439ce2a746d1bb90098e to your computer and use it in GitHub Desktop.
Git log visualization tips

Git log visualization tips

Graph alongside the normal/detailed log output

This version lists a graph alongside the normal/detailed log output

git log --graph --abbrev-commit --decorate --date=relative --all

One liner with graph

git log --all --decorate --graph --oneline

Insert good description here

git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all

@deoren
Copy link
Author

deoren commented Jan 23, 2018

As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!

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