Skip to content

Instantly share code, notes, and snippets.

@IronSavior
Created January 24, 2020 22:51
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 IronSavior/268b5db9efb25e673cd5b5ab530edeea to your computer and use it in GitHub Desktop.
Save IronSavior/268b5db9efb25e673cd5b5ab530edeea to your computer and use it in GitHub Desktop.
Custom git log graph
#!/bin/bash
commit='%C(dim yellow)%h'
time='%C(bold yellow)%ad'
author='%C(dim cyan)%an'
refs='%C(auto)%d'
subject='%C(dim white)%s'
fmt="$commit $time $author ${refs}%n${subject}%n"
git config --global alias.dag "log --graph --date=relative --pretty=format:'${fmt}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment