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

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

当我推送或克隆我的项目时 to/form bit-bucket 它显示

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

我用过这些但没有找到结果:

git config --global http.postBuffer 524288000  

git config --global http.postBuffer 1048576000

我的问题还没有解决。请建议我。

您尝试过通过 SSH 克隆它吗?

假设您已尝试使用以下命令进行克隆:
git clone https://USER@bitbucket.org/TEAM/PROJECT.git

现在要通过 ssh 克隆该存储库,命令应如下所示:
git clone git@bitbucket.org:TEAM/PROJECT.git

然而,要使其生效,您需要将 public ssh 密钥上传到 bitbucket。

在您的机器上,您可以使用以下命令找到您的 ssh public 密钥
cat ~/.ssh/*.pub

您需要在 bitbucket 站点 上添加此密钥(将 URL 的 USER 部分更改为您的用户名):

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