Skip to content

Instantly share code, notes, and snippets.

@bonifaido
Created July 7, 2012 17:22
Show Gist options
  • Save bonifaido/3067251 to your computer and use it in GitHub Desktop.
Save bonifaido/3067251 to your computer and use it in GitHub Desktop.
git - counting the number of source lines
# Change the regex group to your programming language's extensions
git ls-files | egrep '\.(h|cpp)$' | xargs cat | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment