Skip to content

Instantly share code, notes, and snippets.

@number5
Last active September 17, 2025 18:13
Show Gist options
  • Select an option

  • Save number5/1265e144a1cc3b1ae269 to your computer and use it in GitHub Desktop.

Select an option

Save number5/1265e144a1cc3b1ae269 to your computer and use it in GitHub Desktop.
pretty git log with relative dates and tags

My git log alias

alias gl='git log --graph --pretty=format:'%C(magenta)%h%Creset %w(72,1,2)%Cgreen(%cr) -%C(bold green)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative'

gl screenshot

@ahmedam55
Copy link

Really helpful! Couldn't thank you enough

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