Skip to content

Instantly share code, notes, and snippets.

@Mark24Code
Created October 29, 2018 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mark24Code/94faddf82d4fde234fb26f01072773c2 to your computer and use it in GitHub Desktop.
Save Mark24Code/94faddf82d4fde234fb26f01072773c2 to your computer and use it in GitHub Desktop.
计算代码量
git log --numstat --pretty="%H" <HashStart>..<HashEnd> | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d,-%d\n",plus,minus)}'\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment