【问题标题】:How to ask Gitbash to authenticate me again after my authentication failed the first time?在我的身份验证第一次失败后如何要求 Gitbash 再次对我进行身份验证?
【发布时间】:2019-06-10 01:16:45
【问题描述】:

Git bash 询问我的用户名和密码,但我不小心输入了错误的密码。它不会再次提示我输入用户名和密码,因此我无法执行任何 git 命令。有什么命令可以让它再次提示我输入用户名和密码。

【问题讨论】:

    标签: git-bash


    【解决方案1】:

    如果您使用的是 https,则需要从您正在使用的凭证存储中删除该 URL。

    见:

    【讨论】:

    • 我在 Windows 上。我怎么知道我是否在使用 https? 中的 URL 是什么: git credential-manager reject
    • @Anna 在你的仓库中输入git remote -v。如果源 URL 以 https://aserver/auser/arepo 开头,则您使用的是 https URL。然后命令将是git credential-manager reject https://aserver(但您也可以通过 GUI 将其删除:stackoverflow.com/a/53493376/6309
    • 当我输入 git remote -v 时,它会显示:origin https://github.ncsu.edu/engr-csc326-spring2019/csc326-OBP-204-7.git (push)。这将是一个 https URL,对吧?
    • @Anna 是的,缓存的凭据有误。
    猜你喜欢
    • 1970-01-01
    • 2012-09-24
    • 2015-08-22
    • 2015-05-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-12
    • 1970-01-01
    相关资源
    最近更新 更多