Skip to content

Instantly share code, notes, and snippets.

@nnja
Created October 5, 2017 05:38
Show Gist options
  • Save nnja/56319b72f0a005587aebd2c78deb9156 to your computer and use it in GitHub Desktop.
Save nnja/56319b72f0a005587aebd2c78deb9156 to your computer and use it in GitHub Desktop.
Create an alias for pretty logs

Set up a pretty git log

run:

git config --global alias.lg "log --graph --pretty=format:'%C(auto)%h -%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"

to use:

git lg

screen shot 2017-10-04 at 10 37 31 pm

@kunthar
Copy link

kunthar commented Dec 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment