as 复制 github仓库的项目 失败

最后报错:
Clone failed
early EOF The remote end hung up unexpectedly index-pack failed RPC failed; result=18, HTTP code = 200

阅读 3.4k
3 个回答

Solution for failed with error: RPC failed; result=18, HTTP code = 200

First Solution:

Try running the command below in the remote repository if error is fatal: index-pack failed

git repack -a -f -d --window=250 --depth=250
Second Solution:

Also try the below ones from the remote repository location if the above one didn't work:

git gc --aggressive

git repack -a -f -d --window=250 --depth=250
Third Solution:

Try reducing the postBuffer size in the remote repository config. Follow the steps below

Go to remote git repository directory
Run the following command to reduce the size of postBuffer
git config http.postBuffer 24288000
you can check this value by doing "git config --get http.postBuffer"
Try cloning the repository now (back to where are you cloning)
If failed with error: RPC failed; result=18, HTTP code = 200 try again by incresing the postBuffer ever further in the config. go to step 1.

git clone xxxx不行吗?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题