Count files in repo Cheatsheets / Version control / Git / Count files in repo Count files known to Git. $ git ls-files | wc -l