Git,致命的 : The remote end hung up unexpectedly

标签 git github

当我试图运行时

git push origin master --force

刚好

Counting objects: 2649, done.
Delta compression uses up to 2 threads.
Compressing objects: 100% (1280/1280), done.
error: RPC failed; result=22, HTTP code = 413 | 116 KiB/s   
fatal: The remote end hung up unexpectedly
Writing objects: 100% (2504/2504), 449.61 MiB | 4.19 MiB/s, done.
Total 2504 (delta 1309), reused 2242 (delta 1216)
fatal: The remote end hung up unexpectedly
Everything up-to-date

这与不安全有关吗?我尝试创建一个公钥作为 Fatal: The remote end hung up unexpectedly 的答案并重新运行它,但它仍然不起作用。我实际上没有使用 key 吗?如果可以,我该如何使用它?

最佳答案

这是由于 git/https 缓冲区设置。

运行这个(取自 Git fails when pushing commit to github ):

git config http.postBuffer 524288000

然后,再次运行您的原始命令。

关于Git,致命的 : The remote end hung up unexpectedly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15240815/

相关文章:

git pull origin master 给出 merge 冲突 : what should I do?

git - 为什么 `git blame` 和 GitHub blame 不一样?

node.js - 如何将 bash 脚本中保存的 Git 存储库 URL 获取到变量

git - git pull 之间的区别。大师 vs git merge 大师

git - 在未完成的 rebase 过程中恢复丢失的更改

git - 如何为任何命令制作 git 输出用法?

git - 如何将 git 提交从 master 移动到不同的现有分支

Github:避免同步/pull README.md

ruby-on-rails - Git 忽略供应商文件夹

git - 如何在 Github Desktop 中运行 stash?