Can you get the number of lines of code from a GitHub repository?

前端 未结 15 1220
庸人自扰
庸人自扰 2020-12-04 04:26

In a GitHub repository you can see “language statistics”, which displays the percentage of the project that’s written in a language. It doesn’t, however, display ho

15条回答
  •  忘掉有多难
    2020-12-04 05:10

    Not currently possible on Github.com or their API-s

    I have talked to customer support and confirmed that this can not be done on github.com. They have passed the suggestion along to the Github team though, so hopefully it will be possible in the future. If so, I'll be sure to edit this answer.

    Meanwhile, Rory O'Kane's answer is a brilliant alternative based on cloc and a shallow repo clone.

提交回复
热议问题