Skip to content

Instantly share code, notes, and snippets.

@phiniezyc
Created June 24, 2019 12:14
Show Gist options
  • Select an option

  • Save phiniezyc/1cf972f58ed2acf79b23c1da003f311a to your computer and use it in GitHub Desktop.

Select an option

Save phiniezyc/1cf972f58ed2acf79b23c1da003f311a to your computer and use it in GitHub Desktop.
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
You've now created an alias to git log called git lg that will display the nicer output showed before. Try it out by typing git lg (or git lg -p to see the lines that have changed).
https://dev.to/christopherkade/up-your-git-game-and-clean-up-your-history-4j3j?utm_source=digest_mailer&utm_medium=email&utm_campaign=digest_email
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment