Skip to content

Instantly share code, notes, and snippets.

@woffleloffle
Last active September 24, 2018 09:08
Show Gist options
  • Save woffleloffle/40f59f0232e0c5a5c5f9 to your computer and use it in GitHub Desktop.
Save woffleloffle/40f59f0232e0c5a5c5f9 to your computer and use it in GitHub Desktop.
A better `git log`

A Better git log

This is basically the first thing I do after installing git.

From here by Filipe Kiss.

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"

Usage

git lg

lg

git lg -p to see files that have changed.

lg -p

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