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