Skip to content

Instantly share code, notes, and snippets.

View alstat's full-sized avatar
💭
So many ideas, but limited time to code

Al Asaad alstat

💭
So many ideas, but limited time to code
View GitHub Profile
@alstat
alstat / Count lines in Git repo
Created October 1, 2025 05:21 — forked from mandiwise/Count lines in Git repo
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l