Skip to content

Instantly share code, notes, and snippets.

@d9nchik
Forked from nnja/pretty-log-alias.md
Last active September 10, 2022 17:29
Show Gist options
  • Save d9nchik/5ed7e741c7bec3c059e43016b7bd38b4 to your computer and use it in GitHub Desktop.
Save d9nchik/5ed7e741c7bec3c059e43016b7bd38b4 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

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