方法一:git Bash 然后执行命令:git log --format='%aN' | sort -u | while read name; do echo -en "$name\t"; git log --author="$name" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -; done
方法二:安装GitStats先 1安装Python,Git,Gnuplot
2配置环境变量
3下载GitStats git clone git://github.com/hoxu/gitstats.git
4.复制gitstats文件,粘贴。改为gitstats.py
5.在git bash下执行 python gitstats.py /C:/Users/170072/Desktop/csMes /C:/Users/170072/Desktop/csMes