count number of lines of code in github repo code example
Example 1: count lines of code in github repo
git ls-files | xargs wc -l
Example 2: Count number of lines of code in Git repo
cloc $(git ls-files)
git ls-files | xargs wc -l
cloc $(git ls-files)