尽管postBuffer增加到500MB,git push -u origin master仍然会挂起

时间:2016-07-10 07:03:29

标签: git large-files hang git-push

我正在推动约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

我现在又被卡住了!

任何帮助都会非常感激。

1 个答案:

答案 0 :(得分:0)

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

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