在Gite Hub仓库中,你可以看到“语言统计”,其中显示项目以某种语言书写的
因此,是否有可能从Gite Hub存放处获得各种语文的密码,最好是不作克隆?
The question “Count number of line in a git Deposit?
- You have to clone the project, which could be massive. Cloning a project like Wine, for example, takes ages.
- You would count lines in files that wouldn’t necessarily be code, like i13n files.
- If you count just (for example) Ruby files, you’d potentially miss massive amount of code in other languages, like JavaScript. You’d have to know beforehand which languages the project uses. You’d also have to repeat the count for every language the project uses.
总的来说,“快速检查项目的规模”可能过于耗费时间。