每个人写的代码统计工具GitStats

来源:互联网 发布:为什么淘宝没有卖巴豆 编辑:程序博客网 时间:2024/05/22 03:06

方法一: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 





原创粉丝点击