Last active
December 14, 2015 21:49
-
-
Save chris-piekarski/5153733 to your computer and use it in GitHub Desktop.
Git log alias & GitStats HTML Output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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