Skip to content

Instantly share code, notes, and snippets.

@raevilman
Last active May 20, 2019 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raevilman/b3bc98c1edbfde1d775c5321dfc148e3 to your computer and use it in GitHub Desktop.
Save raevilman/b3bc98c1edbfde1d775c5321dfc148e3 to your computer and use it in GitHub Desktop.
Formatting git log output

Command

git log --pretty=format:"%C(dim white)%h%x09%C(auto)%d%n %C(dim white)%ad%x09%C(no-dim cyan)%an%n %C(white)%s" --graph

set alias in linux

alias glog="git log --pretty=format:\"%C(dim white)%h%x09%C(auto)%d%n %C(dim white)%ad%x09%C(no-dim cyan)%an%n %C(white)%s\" --graph"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment