Created
January 24, 2020 22:51
-
-
Save IronSavior/268b5db9efb25e673cd5b5ab530edeea to your computer and use it in GitHub Desktop.
Custom git log graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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