How to remove credentials from Git?
Ask by Utpal Vishwas
Updated 15 Jul 2023
There are two ways to remove credentials from Git:
The Credential Manager is a Windows utility that stores credentials for various applications. You can use the Credential Manager to remove Git credentials.
To do this, follow these steps:
git configcommandYou can also use the
git configcommand to remove Git credentials.To do this, follow these steps:
This will unset the
credential.helperconfiguration setting, which will cause Git to no longer store credentials.Note: If you have used the
git configcommand to store the Git credentials in a file, you will need to delete the file to completely remove the credentials.