Skip to content

Instantly share code, notes, and snippets.

@yize
Last active April 15, 2022 10:15
Show Gist options
  • Save yize/6738702 to your computer and use it in GitHub Desktop.
Save yize/6738702 to your computer and use it in GitHub Desktop.
Beauty & useful git log
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@yize
Copy link
Author

yize commented Sep 28, 2013

Append your .bashrc or .zshrc

alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

then use it as

glog

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