The problem that git is too large to download is solved

Some gits are very large and cannot be used with git graphical tools or command lines, and will prompt
fatal: Out of memory, malloc failed (tried to allocate 3179053026 bytes)
error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly

modified the memory allocation of git, but it still does not work (GIT has more than 3G, which is very scary), so how to increase the postBuffer is useless
git config --global http.postBuffer 1024266000000
Modify
git config --global windowMemory 512m
also Use git config --global -l to
view the existing settings, but the above modification will also report an out of memory error when pushing or cloning a small git. This is because the postBuffer is set too large. Make it smaller and it's fine again. All right. So how do you download such a large git? Refer below instructions https://ilmvfx.wordpress.com/2015/09/01/git-how-to-speed-up-operations-by-checkout-only-specific-files-from-huge-repo/ with below command, only one layer of git is copied, without any history, the size is more than 800 M.










git clone <repo_url> --branch <tag_name> --depth 1 


If you need to delete a git setting
git config --system (or --global or --local) --unset hooks.announcelist | pack.deltacachesize

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326482615&siteId=291194637