How to ask Gitbash to authenticate me again after my authentication failed the first time?

故事扮演 提交于 2019-12-08 06:07:12

问题


Git bash asked for my username and password and I incorrectly entered my password on accident. It won't prompt me again for my user name and password so I can't do any git commands. Is there a command I can use to have it prompt me for the username and password again.


回答1:


If you are working with https, you need to remove that URL from the credential storage you are using.

See:

  • "Managing Remotes / Updating credentials from the OSX Keychain Updating credentials from the OSX Keychain", if you are on MacOS
  • "Windows Credential Helper" for Windows (for command-line: "How to sign out in Git Bash console in Windows?")

    git credential-manager reject <url>
    


来源:https://stackoverflow.com/questions/54208823/how-to-ask-gitbash-to-authenticate-me-again-after-my-authentication-failed-the-f

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!