【问题标题】:git push -u origin master hangs up despite increasing postBuffer to 500MB尽管将 postBuffer 增加到 500MB,git push -u origin master 还是挂断了
【发布时间】:2016-11-12 08:53:12
【问题描述】:

我正在推动大约 50mb。终端在 Total 行之后挂起,几个小时后它返回

error: RPC failed; curl 56 SSLRead() return error - 36
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up to date

我刚刚开始编码,这是我第一次尝试使用 github 发布网站。我用的是mac。

到目前为止的旅程是:

(在终端中,在相关目录中)

$ git init
$ git remote add origin (my-URL-here)
$ git add .
$ git commit -m "First Commit"
$ git push -u origin master

此时终端挂起,所以我使用...

$ git config --global http.postBuffer 524288000
$ git push -u origin master

我现在又卡住了!

任何帮助将不胜感激。

【问题讨论】:

  • 您有 50mb(代码)文本文件?恕我直言,您不应该使用 git 跟踪数据。只需为此使用备份即可。
  • @Daniel 您是否使用本地计算机上的任何代理服务器来访问您的服务器?
  • @Christoph 这不仅仅是文本文件,不 - 我在目录中有 2 个图像和 1 个视频。我一直在学习使用 codecademy 进行编码,包括。如何发布网站所以我写了一些带有vid和一些图片的HTML并想使用github发布它
  • @rango 我使用 wifi 扩展器。科迪N300。这可能是问题的根源吗?
  • @DanielEggleton 不能说太多。参考这篇文章,如果它可能有帮助confluence.atlassian.com/stashkb/…

标签: git large-files freeze git-push


【解决方案1】:

Github 在推送大于 50 MB 的文件时通常会发出警告。它不允许推送大于 100MB 的文件。

您可以切换到 git-lfs(Git 大文件存储),它是 git 的扩展,允许使用 git 处理文件大文件。详情请参阅https://help.github.com/articles/versioning-large-files/ 和https://git-lfs.github.com/。

【讨论】:

  • 为了追求这个解决方案,我安装了 XCode 和 MacPorts,但是为了安装 git-lfs,我在终端中输入了“port install git lfs”,收到权限不足的错误。唯一的解决方案是禁用无根吗?
  • @DanielEggleton 你为什么不尝试使用源代码安装。参考这篇文章。 help.github.com/articles/installing-git-large-file-storage/…如果问题仍然存在,请告诉我。
猜你喜欢
  • 2011-08-07
  • 2015-03-11
  • 2020-07-30
  • 2018-07-30
  • 2013-09-22
  • 1970-01-01
  • 2018-01-10
  • 1970-01-01
相关资源
最近更新 更多