Skip to content

Instantly share code, notes, and snippets.

@gonaumov
Created November 9, 2020 06:25
Show Gist options
  • Save gonaumov/1b3594adf99db2b6006c52bb19182ce8 to your computer and use it in GitHub Desktop.
Save gonaumov/1b3594adf99db2b6006c52bb19182ce8 to your computer and use it in GitHub Desktop.
git log --name-status HEAD~1..HEAD | egrep '^(A|M)\s+' | awk 'BEGIN {modified=0;added=0; printf "Git changes statistick\n";} {if($1 == "M") modified++; else if($1== "A") added++} END { printf "Modified " modified; printf " Added " added }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment