Skip to content

Instantly share code, notes, and snippets.

@avinashkoyyana
Last active August 29, 2015 14:08
Show Gist options
  • Save avinashkoyyana/36113d1017b9a9b0513d to your computer and use it in GitHub Desktop.
Save avinashkoyyana/36113d1017b9a9b0513d to your computer and use it in GitHub Desktop.
count no of lines in a git repository
git diff --stat `git hash-object -t tree /dev/null`
wc -l $(git ls-files | grep '.*\.cs')
/*source : http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment