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?
Solution for failed with error: RPC failed; result=18, HTTP code = 200
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
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
Try reducing the postBuffer size in the remote repository config. Follow the steps below
git config http.postBuffer 24288000
Hey I had same issue but resolved from link i mentioned below
https://confluence.atlassian.com/pages/viewpage.action?pageId=301663284
EDIT:
** From Website: **
Workaround:
While we have server site settings set appropriately for this option, you may need to adjust/override your client's settings. To do this, execute the following command(s):
From within a specific repository. Note the number at the end is the size, in bytes that you wish to allow in a single post. If you have much larger files, you may need to increase this number.
git config http.postBuffer 524288000
To set this gloablly for all remote Git repositories you ever connect to
git config --global http.postBuffer 524288000
I'm not quite sure that it'll work for everyone, but this solved my problem
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With