问题
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