如何在github.com上找到.gitattributes的位置?

发布于 2025-02-02 21:02:33 字数 131 浏览 3 评论 0原文

在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

枫以 2025-02-09 21:02:33

在阅读我的答案之前,请检查 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

enter image description here

and then typing in the file you are searching for (.gitattributes in this case):

enter image description here

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文