0

我知道 GitHub 通过查看存储库中的文件类型来自动确定存储库的语言。但是,应该可以通过编辑存储库根目录中的 .gitattributes 文件来覆盖它,正如GitHub 将存储库更改为错误的语言中所建议的那样。

但是我无法完成这项工作,并且没有为我的存储库指定语言(应该是 Javascript)。

这是我的 .gitattributes 文件:

examples/* linguist-vendored
* linguist-vendored
*.js linguist-vendored=false
*.js linguist-detectable=true
*.js linguist-language=JavaScript

我的存储库是:

https://github.com/arnemorken/anypaginator

4

0 回答 0