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 any more. All my modifications for the project are updated.
It looks like my username and password are "saved". How do I "unsave" them?
How do I sign out?
I tried
git config --global --unset user.name git config --global --unset user.email git config --global --unset credential.helper
But they do not make me sign out.
I want to clear my sign in so the next time I make a push, it asks me again to enter my username and password.
Type :wq to save and exit the editor. Hit enter to return to the normal terminal window.
For Windows User: Follow Instructions: Control Panel >> User Account >> Credential Manager >> Windows Credential >> Generic Credential You can change git credential click modify>>provide uname and password Or you can remove git credential. next time when you'll push repo it'll ask you for credential.
For Windows 10, if your PC has a different login (a MSFT account) and GitHub is on another login, if you go to control panel → user accounts and search for credential manager, you will see "Web Credentials" and "Windows credentials".
GitHub seems to be taking the default ID that is registered in the PC (Microsoft account). Under Windows Credentials, remove the GitHub login details and try Push again. You will be prompted for a GitHub ID and password explicitly. Once we login that gets stored as a personal access token for Git push.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With