Local mobile phone git server problem record

1. git push error report

Generally speaking, there is either not enough cache, the network is not working, or there is a wall.

  1. The pushed file is too large, causing git push error:
 "fatal: The remote end hung up unexpectedly" 

git size limit. The default submission file size of git is said to be 1M on the Internet.

Solution

#即修改提交缓存大小为500M
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 cloning/creating the repository and add the following statement:

postBuffer = 524288000
  1. Remote end pending|2KiB/s
fatal: The remote end hung up unexpectedlyB | 2.00 KiB/s

It may be due to the wall that the network speed is too slow, and the project is too large and cannot be uploaded.

Solution: Climb the firewall or change to a network with good speed and push again and there will be no problem.

  1. git stuck
git config --global sendpack.sideband false
git config --local sendpack.sideband false

If the push can be successful after setting the first one, there is no need to set the second one.



Other configurations

Configure git's minimum speed and minimum speed time:

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

The –global configuration takes effect for the current user. If it needs to take effect for all users, use –system



Guess you like

Origin blog.csdn.net/u011795345/article/details/126839116