Skip to content

Instantly share code, notes, and snippets.

@chris-piekarski
Last active December 14, 2015 21:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save chris-piekarski/5153733 to your computer and use it in GitHub Desktop.
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