Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 677 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 677 Bytes

Hello-World

C/C++编程初学者

Git手册

Git统计方法

  • 统计代码量
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 shortlog -s

Code Reference