gpt4 book ai didi

github - 使用浏览器将二进制文件上传到 github?

转载 作者:行者123 更新时间:2023-12-04 15:21:38 28 4
gpt4 key购买 nike

如何将新的二进制文件上传到 Github?

我尝试上传一些 woff字体,但我不能,因为 Github 只允许我添加一个文本文件,而不是如何上传一个,即使有 is this request that was solved.

最佳答案

自 2016 年 2 月起,您可以从 GitHub 网络界面添加/创建/上传新文件 .
参见“Upload files to your repositories ”:

You can click the “Upload files” button in the toolbar at the top of the file tree.



https://cloud.githubusercontent.com/assets/1369864/12961550/b9a688ea-d006-11e5-96d3-ac91097192a5.png

Or, you can drag and drop files from your desktop onto the file tree.



https://cloud.githubusercontent.com/assets/1369864/12961164/a888b59e-d004-11e5-80a6-e9f32f17c4d5.gif

这取代了 the 2012 answer 中描述的文件创建,并添加 上传 能力(针对一个或多个文件)。

原始答案(2015 年 3 月)

GitHub Web 界面中唯一允许您推送二进制文件(或您想要的任何其他文件)的部分是 creating a release .
然后,您可以拖放所需的任何二进制文件:

https://help.github.com/assets/images/help/releases/releases_adding_binary.gif

但是对于常规 repo ,当 creating new files ,您只能编辑新文件,不能拖放现有的二进制内容:

https://help.github.com/assets/images/help/repository/new-file-content.png

所以现在不可能(2015 年 3 月)

关于github - 使用浏览器将二进制文件上传到 github?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29053961/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com