Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Fatal when using git: how to solve the The remote end hung up unexpectedly error

Shulou Source: shulou.com Published: 2022-06-02 04:44:32 10月03日 Update

This article mainly explains the "fatal when using git: how to solve The remote end hung up unexpectedly errors", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "when using git fatal: The remote end hung up unexpectedly errors how to solve" it!

"fatal: The remote end hung up unexpectedly" appears when updating or submitting a project using git because the pushed file is too large.

That's easy. It's either the lack of cache, the failure of the network, or the wall.

Especially when the resource bank is abroad. This problem may be caused by a network problem.

Method 1:

Modify the commit cache size to 500m or larger

Git config-global http.postBuffer 524288000

# some comments below report having to double the value:

Git config-global http.postBuffer 1048576000

Or modify the generated config file under the .git directory generated by the clone / create version library to add the following:

[http]

PostBuffer = 524288000

The modifications are as follows:

And then push it again.

Method 2:

Configure the minimum speed and minimum speed time for git:

Git config-- global http.lowSpeedLimit 0

Git config-global http.lowSpeedTime 999999 unit second

-- global configuration takes effect for the current user. If you need to do so for all users, use-- system.

Method 3:

Fatal: The remote end hung up unexpectedlyB | 2.00 KiB/s

Mine is like this, followed by | 2.00KiB/s

This sentence shows that the remote end is suspended. | 2KiB/s

It should be because of the wall that the network speed is too slow, and the project is too big to upload.

Thank you for your reading, the above is the content of "fatal: how to solve The remote end hung up unexpectedly errors when using git". After the study of this article, I believe you have a deeper understanding of how to solve the problem of fatal: The remote end hung up unexpectedly errors when using git, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Error timing reason method either learn push minimum content situation file user cache network speed problem project build configuration no Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei Xiaomi vpn Shulou Tech Info