Skip to content

Instantly share code, notes, and snippets.

@mcbrwr
Created July 8, 2016 08:01
Show Gist options
  • Save mcbrwr/5bcd852627d32695b82ba302e24c9cdf to your computer and use it in GitHub Desktop.
Save mcbrwr/5bcd852627d32695b82ba302e24c9cdf to your computer and use it in GitHub Desktop.
nice git log
# run once
git log --graph --pretty=format:'%C(yellow)%cD%Creset - %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# OR: set config:
git config --global alias.lg "log --graph --pretty=format:'%C(yellow)%cD%Creset - %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment