如何重置git身份验证?

时间:2018-07-29 14:58:06

标签: git gitlab

我输入了错误的ID(我的错误),并且我认为我的计算机的IP被永久禁止。我想取消禁止我的IP,以便可以将git clone克隆到所需的git存储库。当我尝试git克隆我的git存储库时,它说     remote: HTTP Basic: Access denied     fatal: Authentication failed for "~~my repository"

如何重新访问git存储库?或者我该如何重设禁令状态?我认为只输入一次错误的ID并被永久禁止是很困难的。

2 个答案:

答案 0 :(得分:6)

您的凭证管理员似乎存储了错误的身份验证并重新使用它。重置它。

git config --system --unset credential.helper

更多信息:

Remove credentials from Git

GitLab remote: HTTP Basic: Access denied and fatal Authentication

答案 1 :(得分:1)

我认为这篇文章可能会更好地为您服务:Github OpenSSH asking for password for an https link

要取消设置git config --system --unset credential.helper命令,您可以键入git config --system credential.helper存储(也可以带有--global--local标志)

相关问题