The problem of interruption when git clone
has not been solved recently
Cloning into '/Users/Sirormy/sdk/clang/fastcomp/src'...
remote: Counting objects: 1225089, done.
remote: Compressing objects: 100% (22/ 22), done.
error: RPC failed; result=18, HTTP code = 20050 MiB | 1.08 MiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
['/usr/bin/git', 'clone' , 'https://github.com/kripken/em...', '/Users/Sirormy/sdk/clang/fastcomp/src'] failed with error code 128!
Installation failed!
I have read all the basically reliable answers, they are basically as follows:
Someone said this
git config --global core.compression -1
or modify ~/.gitconfig
autocrlf = input
excludesfile = /Users/Sirormy/.gitignore_global
packedGitLimit = 5120m
packedGitWindowSize = 5120m
compression = 1
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[commit]
template = /Users/Sirormy/.stCommitMsg
[pack]
deltaCacheSize = 5120m
packSizeLimit = 5210m
windowMemory = 5210m
[http]
postBuffer = 1048576000
And the one with the highest votes on Stackoverflow, like this
First, turn off compression:
git config --global core.compression 0
Next, let's do a partial clone to truncate the amount of info coming down:
git clone --depth 1 <repo_URI>
When that works, go into the new directory and retrieve the rest of the clone:
git fetch --unshallow
or, alternately,
git fetch --depth=2147483647
Now, do a regular pull:
git pull --all
Testing medium-sized projects can be solved using these methods, but very large projects such as my clone emscripten will have problems, and the above error will be reported when it is about 50M.
Reinstalling git still does not solve the problem. This excludes the problem of the git software itself. The current version is
git version 2.3.2 (Apple Git-55)
Since some scenarios are git resources automatically pulled from the code, manual downloading cannot solve all problems
So what should I do? If you have a solution, please test it and let me know
git clone https://github.com/kripken/emscripten.git
The project is a bit big, but if there are no errors after downloading more than 59M, that is the answer.
Thank you~
Execute
git repack -a -f -d --window=250 --depth=250
and that’s it.If you still get an error, please execute:
You can also change it to SSH address:
git clone git@github.com:kripken/emscripten.git
Debug documentation: https://coding.net/help/faq/g...