为什么更改GitHub存储库语言不起作用? [英] Why changing GitHub repository language not working?
本文介绍了为什么更改GitHub存储库语言不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用Objective-C语言作为Xcode项目在GitHub上建立了存储库.
在我项目的根目录中的 .gitignore 文件旁边,创建了 .gitattributes 文件,并在其中设置以下代码:
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
但是在Github主页上没有显示任何语言.
But does not show any language in Github homepage.
推荐答案
.gitattributes
规则的第一部分必须与存储库中的文件匹配.除非您的Objective-C文件的文件扩展名为.objective-c
,否则以上操作将无效.以下应该可以工作:
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
这篇关于为什么更改GitHub存储库语言不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文