How Do I Count The Number Of Lines In A Git Repo?
How Do I Count The Number Of Lines In A Git Repo? Use git ls-files -z | xargs -0 wc -l if you have files with spaces in the name. For including/excluding certain files use: git ls-files | grep -P “. *(hpp|cpp)” | xargs wc -l where the grep part is any perl regex you