Count the total lines of code in your git repository

Some­times it might be cool to see the total lines com­mit­ted in your projects. I find it a handy way to col­lect data on a daily basis to cre­ate pretty graphs to mea­sure the rate of my progress. A com­bi­na­tion of a git com­mand along with some unix com­mands cant get you what you want.

git ls-files | xargs cat | wc -l

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *