$ git log --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 }' -git 中有這行命令統計提交代碼的行數刪減數量,就是不知道出來的結果包含不包含 package-lock.json 中的改動,因為兩臺電腦上提交的時候 package-lock.json 自動會刪減很多行代碼。
添加回答
舉報
0/150
提交
取消