git statistics








  • Command 1:
    git log --pretty=format:%ae | gawk -- '{ ++c[$0]; } END { for(cc in c) printf "%5d %s\n",c[cc],cc; }'
    
  • Command 2:
    git log --pretty=format:%an | awk '{ ++c[$0]; } END { for(cc in c) printf "%5d %s\n",c[cc],cc; }' | sort -r
    
  • Command 3:
    git shortlog -sne
    
  • gitstats is script to generate full statistical html pages with charts. You can install it on Ubuntu Linux using the following command:
    sudo apt-get install gitstats
    To generate stats for a git repository:
    gitstats /path/to/repo.git /dst/
    






No comments:

Post a Comment