Clear current Git credentials on Windows
Git caches the access data for the remote repositories in the Windows Credential Manager and then always uses them for authentication. If the password is changed or authentication methods are adjusted, this can lead to problems. It is therefore important to know how the current access data can be deleted.
Delete cached credentials
- Open Credential Manager: WIN + R "control /name Microsoft.CredentialManager"
- Switch to "Windows Credentials".
- Delete all elements that start with "git:" and contain your own Gitlab Instance URL.
You will then be asked for the Git credentials again and you can use the correct method.