Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Git log alias & GitStats HTML Output
#http://www.jukie.net/bart/blog/pimping-out-git-log
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
#stats
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