首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >推到github gist失败

推到github gist失败
EN

Stack Overflow用户
提问于 2013-08-02 13:59:58
回答 1查看 2.1K关注 0票数 5

试图把巴新推到我的github要旨,但没有成功。

代码语言:javascript
复制
$ git clone https://gist.github.com/6124716.git
$ cd 6124716
$ ls
fed.json     index.html     vermont.json

然后,我可以修改index.html并将更改推送到github存储库。但是,一旦我将一个png文件保存到回购程序中,我就失去了推送的能力:

代码语言:javascript
复制
$ git push
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 25.48 KiB, done.
Total 3 (delta 0), reused 0 (delta 0)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

阅读有关这个问题的文章,我看到了增加缓冲区大小的建议:

代码语言:javascript
复制
$ git config http.postBuffer 524288000

但我仍然收到同样的错误信息。此外,vermont.json比我试图上传的PNG要大得多。

代码语言:javascript
复制
$ ls -la
drwxr-xr-x   7 mparrilla  staff     238 Aug  2 09:53 .
drwxr-xr-x   7 mparrilla  staff     238 Aug  2 09:53 ..
drwxr-xr-x  14 mparrilla  staff     476 Aug  2 09:56 .git
-rw-r--r--   1 mparrilla  staff    5635 Aug  2 09:52 fed.json
-rw-r--r--   1 mparrilla  staff    3381 Aug  2 09:52 index.html
-rw-r--r--   1 mparrilla  staff   25776 Aug  2 09:28 thumbnail.png
-rw-r--r--   1 mparrilla  staff  187388 Aug  2 09:52 vermont.json
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-08-02 14:10:34

我不知道使用HTTPS有什么问题,但作为另一种选择,您可以尝试使用SSH:

通过SSH克隆一个要点-

代码语言:javascript
复制
git clone git@github.com:6124716.git
票数 11
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18018779

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档