Last active
August 2, 2017 09:35
-
-
Save pronskiy/b83232ebf1b6fa2e5f793d4833893f23 to your computer and use it in GitHub Desktop.
Fancy git log alias
This file contains 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
git config --global alias.lg '!f() { git -c color.ui=always log --pretty=format:"%C(yellow)%h%Creset %C(green)%<(15,trunc)%an%Creset %C(cyan)%<(12,trunc)%ar%Creset %s" --graph -n20 $@ | sed -e "s/\[[-A-Z0-9]*\]/$(tput setaf 172)&$(tput sgr0)/g"; }; f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment