SmartGit,无法推送,“远程:HTTP Basic:访问被拒绝”

Nec*_*ron 3 git authentication push smartgit gitlab

远程:HTTP 基本:访问被拒绝

远程:您必须使用具有“read_repository”或“write_repository”范围的个人访问令牌通过 HTTP 进行 Git。

远程:您可以在https://gitlab.com/profile/personal_access_tokens生成一个

我已经创建了包含所有可用范围的个人访问令牌,并将其放入Edit -> Preferences -> Hosting ProvidersGitLab 帐户中,但我仍然无法推送。GitLab 帐户有 2FA,如果重要的话我也安装了这个

Windows 10 x64。

Von*_*onC 5

由于您安装了凭证助手,请检查它是否处于活动状态:

cd C:\path\to\repo
git config credential.helper
Run Code Online (Sandbox Code Playgroud)

如果它返回“manager”,请打开Windows 凭据管理器并检查是否已存储 gitlab.com 的凭据。
如果是这样,请将其删除,然后再次推送:Git 应该要求您提供凭据。请输入您的 PAT(个人访问令牌)作为密码。