如何在github.com上找到.gitattributes的位置?
在Github网站或我的存储库中,我在哪里可以找到.gitattributes
文件?我不使用git命令行,并将网站用于所有上传。最近,我发布了一个sqlite文件以及一个python文件,但使用语言仅显示python。
Where can I find .gitattributes
file on GitHub website or in my repository? I don't use git command line and use website for all uploads. Recently I have posted a SQLite file along with a Python file but in languages it is showing only Python.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在阅读我的答案之前,请检查 https:// git-git- scm.com/book/en/v2/customizing-git-git--tributes
它有效地告诉您您有一个 .git/info/attributes 的文件,或者您可能有一个文件 .gitattributes 在某个地方文件。
您可以通过单击“转到文件”按钮
,然后输入您要搜索的文件( .gitattributes) 在这种情况下):
如果您找到了文件,很好!如果没有,那么您将需要(对不起!)来克隆您的项目,并检查是否有 git/info/属性/文件,看看是否有任何属性这与您的目标相矛盾。您可以在root文件夹中创建 .gitattributes 文件(如果不存在)和
git push
it。Before you read my answer, kindly check https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
It effectively tells you that you either have a file of .git/info/attributes or you might have a .gitattributes file somewhere.
You can search for any files (including .gitattributes) via clicking on the Go To File button
and then typing in the file you are searching for (.gitattributes in this case):
If you find your file, good! If not, then you will need (sorry !) to clone your project and check whether there is a .git/info/attributes/ file and see whether there are any attributes that are contradicting your aim. You can create a .gitattributes file (if it doesn't exist) in your root folder and
git push
it.