【问题标题】:error: RPC failed; result=52, HTTP code = 0 fatal: The remote end hung up unexpectedly错误:RPC 失败; result=52, HTTP code = 0 fatal: 远端意外挂断
【发布时间】:2016-08-01 20:05:13
【问题描述】:

当我将我的项目推送或克隆到/形成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

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

【问题讨论】:

  • 你试过通过 git+ssh 吗?
  • 不行,请教我怎么做?

标签: ruby-on-rails ruby ruby-on-rails-4 github bitbucket


【解决方案1】:

您是否尝试过通过 SSH 克隆它?

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

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

但是,要使其正常工作,您需要将 public ssh 密钥上传到 bitbucket。

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

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

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

【讨论】:

    猜你喜欢
    • 2015-12-27
    • 2012-09-14
    • 2014-09-17
    • 2013-08-28
    • 1970-01-01
    • 2013-09-04
    • 1970-01-01
    • 2021-08-04
    • 1970-01-01
    相关资源
    最近更新 更多