git push不成功

rayliao
  • 3.1k
git push

Counting objects: 317, done. Delta compression using up to 4 threads.
Compressing objects: 100% (304/304), done. error: RPC failed;
result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly
Writing objects: 100% (317/317), 2.00 MiB | 3.64 MiB/s, done. Total
317 (delta 34), reused 0 (delta 0) fatal: The remote end hung up
unexpectedly Everything up-to-date

git status

On branch master Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits) nothing to commit,
working directory clean

git branch
  • master
回复
阅读 13.3k
1 个回答

从报错上来说,貌似是因为提交的文件过大造成的错误;尝试修改一下postBuffer的参数:
git config –global http.postBuffer 52428800

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏