how to count how many lines in a repository command line linux code example Example: how to count how many lines in a repository command line linux git ls-files | xargs wc -l