Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
537 views
in Technique[技术] by (71.8m points)

git - Git,致命:远端意外挂断(Git, fatal: The remote end hung up unexpectedly)

When I tried to run

(当我尝试跑步时)

git push origin master --force

I just got

(我刚得到)

Counting objects: 2649, done.
Delta compression using 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

Is it something to do with not being secure?

(与不安全有关系吗?)

I tried creating a public key as in the answer for Fatal: The remote end hung up unexpectedly and running it again, but it still doesn't work.

(我尝试按照“ 致命”的答案创建公用密钥:远端意外挂起并再次运行,但仍然无法正常工作。)

Am I not actually using the key?

(我不是在实际使用钥匙吗?)

If so, how do I use it?

(如果可以,该如何使用?)

  ask by DanielLC translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The problem is due to git/https buffer settings.

(问题是由于git / https缓冲区设置。)

In order to solve it (taken from Git fails when pushing commit to github )

(为了解决它(从Git提取到将commit推送到github时失败 ))

git config http.postBuffer 524288000

And run the command again

(并再次运行命令)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...