Jai Kumar Rajput
Jai Kumar Rajput

Reputation: 4217

error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly

When I'm pushing or cloning my project to/form bit-bucket it shows me

error: RPC failed; result=52, HTTP code = 0
fatal: The remote end hung up unexpectedly

I have used these but no result found :

git config --global http.postBuffer 524288000  

git config --global http.postBuffer 1048576000

I did not solve my problem yet. Please suggest me.

Upvotes: 0

Views: 898

Answers (1)

p1100i
p1100i

Reputation: 3750

Have you tried cloning it via SSH?

Lets assume you've tried to clone with the command:
git clone https://[email protected]/TEAM/PROJECT.git

Now to clone that repo via ssh, the command should look something like this:
git clone [email protected]:TEAM/PROJECT.git

However for this to work, you need to upload your public ssh key into bitbucket.

On your machine you can find out your ssh public key with the command:
cat ~/.ssh/*.pub

You need to add this key on the bitbucket site (change the USER part of the URL to your username):

https://bitbucket.org/account/user/USER/ssh-keys/

Upvotes: 1

Related Questions