Skip to content

Instantly share code, notes, and snippets.

Last active December 14, 2015 21:49
What would you like to do?
Git log alias & GitStats HTML Output
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
#other git log commands
git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
#see short changes for a commit id
git diff --stat b78c27ee675356a309cb5d0e3edf1462e1764a44
apt-get install gitstats
> gitstats . stats_out_dir
> firefox ./stats_out_dir/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment