首页 > 解决方案 > Gitlab oauth2 访问令牌不能通过 http 使用 git

问题描述

我成功获得了 gitlab 用户的 oauth2 应用程序访问令牌。范围包括 read_repository。但我无法使用此访问令牌作为密码 git ls-remote 或 git clone 我的项目。错误是remote: HTTP Basic: Access denied

顺便说一句,我的 gitlab CE 服务器没有启用 F2A。

标签: oauth-2.0gitlab

解决方案


推荐阅读