Skip to content

Instantly share code, notes, and snippets.

@choffmeister
Created September 4, 2015 15:16
Show Gist options
  • Save choffmeister/fb9d0d7991a59a1bdc2d to your computer and use it in GitHub Desktop.
Save choffmeister/fb9d0d7991a59a1bdc2d to your computer and use it in GitHub Desktop.
Git count added/deleted lines
#!/bin/bash
git diff master..HEAD --numstat | grep 'src/' | awk '{a+=$1; d+=$2} END {print a, d}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment