Skip to content

Instantly share code, notes, and snippets.

@pronskiy
Last active August 2, 2017 09:35
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 pronskiy/b83232ebf1b6fa2e5f793d4833893f23 to your computer and use it in GitHub Desktop.
Save pronskiy/b83232ebf1b6fa2e5f793d4833893f23 to your computer and use it in GitHub Desktop.
Fancy git log alias
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