简体   繁体   中英

Unable to reset git credentials using PyCharm terminal on Windows

I am using Gitlab via Pycharm (Windows 10) and when checking out an existing project from gitlab (using: VCS - Check out from version control - Git) it asks for user credentials.

I misspelled something in my username and/or password and it says "Authentification failed for ..." but when trying again it does not ask for the user and password again but immediately gives the same error message.

How can I re-enter user and password?

I followed this but it did not help as the error stays the same.

If you are using MAC OS, you will need to delete the credentials from the KeyChain Access.

If you are using Windows, you will need to delete the credentials from Credential Manager -> Windows Credentials.

Git has a built-in credentials system that works in different OS environments. Git runs a daemon process that caches credentials, kill the process and it will prompt from credentials again or erase the credentials us erase command. Doc Link

If you are interested to know more about caching git credentials and how it works, check out this answer.

This is actually a long-standing bug in the Microsoft Git Credential Manager (which is installed by default with Git for Windows ).

As @sun_jara wrote, the workaround is to manually delete the credentials from the Windows Credential Manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM