git count lines in a project code example Example: Count number of lines of code in Git repo cloc $(git ls-files)