Why changing GitHub repository language not working?

一世执手 提交于 2019-12-23 04:35:36

问题


i have been made a repository in GitHub with as Xcode project with Objective-C language.
Beside .gitignore file in root of my project made .gitattributes file and set this code in it:

* linguist-vendored
*.objective-c linguist-vendored=false

But does not show any language in Github homepage.


回答1:


The first part of .gitattributes rules must match files in the repository. Unless your Objective-C files have .objective-c for file extension, the above will not work. The following should work:

* linguist-vendored
*.c linguist-vendored=false
*.h linguist-vendored=false
*.m linguist-vendored=false



回答2:


The GitHub language indicator cannot be manually set.

It shows a breakdown of the files in your repository and the languages it determines they are written in.

See about repository languages on GitHub.



来源:https://stackoverflow.com/questions/44613192/why-changing-github-repository-language-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!