Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git/GitHub Total Number Of Lines Contributed For An Account

I want to get the total number of lines of code that an account on GitHub has done. This is not for judging productivity or whatever (LOC is a poor choice for that), it's really just for our amusement.

Is it possible to get the total number of lines of code that an Account on GitHub (by email address or handle) has done?

like image 593
SnakeDoc Avatar asked May 16 '13 16:05

SnakeDoc


1 Answers

You can use the GitHub API for that:

  • Use /user/:user/repos to get all repositories
  • Then use /repos/:owner/:repo/stats/contributors to get the contributors (and their additions / deletions) on those repositories
like image 75
Koraktor Avatar answered Sep 29 '22 23:09

Koraktor