首页 > 解决方案 > 无法克隆私有 GitLab 存储库;403 错误

问题描述

我在用

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

标签: gitgitlab

解决方案


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


推荐阅读