[Solved] Git Push Error: &fatal: the remote end hung up unexpectedly

First of all, this is my error report

Total 123 (delta 0), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

Reason: the project is too large and the network is not working, resulting in an error that the download is too slow and exceeds the time trigger

Method 1: modify the cache size

git config --global http.postBuffer 524288000

Change the warehouse configuration to the following

[core]
	
   repositoryformatversion = 0
	
   filemode = false
	
   bare = false
	
   logallrefupdates = true
	
   symlinks = false
	
   ignorecase = true


[remote "origin"]
	
   url = https://github.com/dhsb-4/SSM.git
	
   fetch = +refs/heads/*:refs/remotes/origin/*


[branch "master"]
   remote = origin
   merge = refs/hefs/master

[http]
  postBuffer = 1048576000

Configuration path (open with Notepad)


push again after modification

Method 2: configure the minimum speed and minimum speed time of GIT

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999 

– Global: for the current user – system: for all users

Method 3: use SSH path

I use this method to solve this problem

Read More: