【问题标题】:Cannot get git clone to work properly无法让 git clone 正常工作
【发布时间】:2015-09-08 07:44:51
【问题描述】:

我已按照此处的说明进行操作Cannot push to git repository on bitbucket

当我运行 ssh-add -l 时,我收到了正确的信息,并且我已将我的公共 ssh-key 添加到 bitbucket。

但是,每次我运行 git clone 我都会收到:

权限被拒绝(公钥)。致命:无法从远程读取 存储库。

有什么帮助吗?

【问题讨论】:

  • 您使用的远程 URL 是什么?您确定使用了正确的用户吗?
  • 想通了,在下面回答!谢谢!

标签: git bitbucket


【解决方案1】:

我一问就想通了。我对我所在的导演没有适当的写权限。因此我不得不使用sudo git

sudo 没有正确设置 ssh,我的帐户是。

在使用chmod 修复文件夹中的权限和here 的一些建议后,我能够让git 工作

【讨论】:

    猜你喜欢
    • 2020-01-10
    • 2011-12-28
    • 1970-01-01
    • 2015-11-04
    • 2012-09-05
    • 2017-11-06
    • 2011-09-06
    • 1970-01-01
    • 2023-03-10
    相关资源
    最近更新 更多