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

后端 未结 8 813
广开言路
广开言路 2020-12-09 04:15

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

$git clone 
Cloning into \'name_project\'...
Password for \'\':
remote: Counti         


        
8条回答
  •  难免孤独
    2020-12-09 04:57

    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.

提交回复
热议问题