简体   繁体   中英

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.

Have you tried cloning it via SSH?

Lets assume you've tried to clone with the command:
git clone https://USER@bitbucket.org/TEAM/PROJECT.git

Now to clone that repo via ssh , the command should look something like this:
git clone git@bitbucket.org: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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM