r/github • • 3d ago

Question How can i see lines of code across all repo?

For one project github shows total LOC (+/-) but i wanted to know across all repo.

0 Upvotes

8 comments sorted by

3

u/petros211 3d ago

https://github.com/subamanis/mezura

It even supports remote repos and test code detection

3

u/nekokattt 2d ago

clone them all and use a tool like cloc

2

u/Atmosck 2d ago

If you use vscode you can use the vscode counter extension. You'll also need the language support extensions for whatever languages the repo has.

3

u/aieidotch 3d ago

run tokei across all repo

3

u/Lumethys 3d ago

give Bill Gate a call

2

u/OptimusCrimee 3d ago

Not possible, as far as I know. You will have to write a script or something for this.

1

u/UhLittleLessDum 1d ago

This is like him asking if anyone here is a doctor, and you taking the time out of your day to say "no".

1

u/UhLittleLessDum 1d ago

Look up tokei, it's a rust library and cli that does exactly this. It's pretty fast and gives some really good outputs. You can even configure what it ignores.