如何再window下统计自己写的代码行

git log --since="2018-05-01" --before="2018-11-5" --author="$(git config --get user.name)" --pretty=tformat: --numstat | gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "added lines: %s removed lines : %s total lines: %s\n",add,subs,loc }'

需要下载一下gawk(download/Binaries):http://gnuwin32.sourceforge.net/packages/gawk.htm

 当然需要添加一下全局的path

猜你喜欢

转载自www.cnblogs.com/amiezhang/p/9910577.html