Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
727 views
in Technique[技术] by (71.8m points)

clone - git bash: error: RPC failed; result = 18, HTP code = 200B | 1KiB/s

When I try to clone on git bash, I receive this error:

$git clone <link>
Cloning into 'name_project'...
Password for '<link>':
remote: Counting objects: 100% (659/659), done.
error: RPC failed; result=18, HTTP code = 200B | 1 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: recursion detected in die handler

This is the command used:

git clone h(double t)ps://[email protected]/path.git

Can anyone help?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

  1. Go to remote git repository directory
  2. Run the following command to reduce the size of postBuffer

    git config http.postBuffer 24288000

  3. you can check this value by doing "git config --get http.postBuffer"
  4. Try cloning the repository now (back to where are you cloning)
  5. 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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...