I'm using Git, on Windows, version 2.9.2.windows.1.
I work on a repository project and when I do a push, it asked me to enter my Github Username and Password. I entered both my Github Username and Password to update the project.
In my next push, it doesn't ask for my username and password anymore. All my modification for the project is updated.
Looks like my username and password are "saved". How do I "unsave" them?
How do I sign out?
git config --global --unset user.name
git config --global --unset user.email
git config --global --unset credential.helper
First, user authentication has nothing to do with
user.email git config.
git config --global credential.helper manager
Check your config (
git config -l) and see if "manager" is registered there.
Since its v1.3.0 (April 2016), it has a delete command to purge credentials.
git credential-manager delete <url>
If git config credential-manager returns store, then Git uses the “store” mode, which saves the credentials to a plain-text file on disk, and they never expire.
I would remove that particular credential helper from the config, as it stores credentials in plain text.
I see the "Manage your credentials" option, I click on it out of curiosity, then I click on "Windows Credentials", under "Generic Credentials", there is "
git:github.com";, I click on it and there is the "Remove" option. I clicked Remove.
When I do a git push, it asks again for my user and my password. Exactly what I want when I want to sign out.