gpt4 book ai didi

git - SmartGit,无法推送, "remote: HTTP Basic: Access denied"

转载 作者:行者123 更新时间:2023-12-04 16:41:19 27 4
gpt4 key购买 nike

remote: HTTP Basic: Access denied

remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.

remote: You can generate one at https://gitlab.com/profile/personal_access_tokens

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

Windows 10 x64。

最佳答案

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

cd C:\path\to\repo
git config credential.helper

如果返回“manager”,打开你的Windows Credentials Manager并检查是否已为 gitlab.com 存储凭据。
如果是这样,删除它,然后再次推送:Git 应该询问您的凭据。请输入您的 PAT(个人访问 token )作为密码。

关于git - SmartGit,无法推送, "remote: HTTP Basic: Access denied",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60272933/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com