When git pulls the project, it reports RPC failed; curl 18 transfer closed with outstanding read data remaining wrong solution

Previously, when I pulled the project from the git remote library, the above error occurred. The error was reported because the pulling time was too long. So I guessed that the memory or the project was too large and it could not be pulled. So I searched and said yes on the Internet. There are three solutions, one is to increase the cache area; the other is shallow cloning, that is to say, when cloning, clone less first, for example, only clone each file and only take the most recent commit, not the entire historical version, and the third is to change Agreement: The specific solution is as follows:

1. Increase the buffer area
git config --global http.postBuffer 524288000
This is about 500M
2. Clone less, –depth 1
git clone https://github.com/flutter/flutter.git --depth 1
–depth 1 The meaning of is that the copy depth is 1, that is, each file only takes the most recent submission, not the entire historical version.
3. Change the protocol
clone http method to SSH, that is, https:// to git://,
for example, git clone https://github.com/test/test.git
to git clone git://github. com/test/test.git
 

Guess you like

Origin blog.csdn.net/Crystalqy/article/details/107488845