【问题标题】:Can't clone a private GitLab repository; 403 error无法克隆私有 GitLab 存储库; 403 错误
【发布时间】:2021-09-08 19:58:33
【问题描述】:

我正在使用

git clone https://gitlab.com/project_name/repo_name.git

也使用

git clone https://username@gitlab.com/project_name/repo_name.git

两者都报同样的错误,如下:

fatal: unable to access 'https://gitlab.com/project_name/repo_name.git/': The requested URL returned error: 403

【问题讨论】:

标签: git gitlab


【解决方案1】:

您是否将 ssh 密钥添加到 gitlab 中的用户配置文件中?如果您使用 http 来克隆/拉取/推送/等,则必须验证 repo 是否对其有任何限制,默认情况下应该这样做,并且是理智的,因为您不希望(例如我)去和弄混你的仓库。

【讨论】:

    【解决方案2】:

    如果您是管理员,您可能忘记将自己添加为私人仓库的成员。您需要成为会员才能克隆代码/运行管道。

    【讨论】:

      猜你喜欢
      • 2015-07-24
      • 2014-10-30
      • 2019-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-23
      • 2016-03-04
      相关资源
      最近更新 更多