remove credentials from git
I faced the same issue as the OP. It was taking my old Git credentials stored somewhere on the system and I wanted to use Git with my new credentials, so I ran the command
$ git config --system --list
It showed
credential.helper=manager
Whenever I performed
git push it was taking my old username which I set long back, and I wanted to use new a GitHub account to push changes. I later found that my old GitHub account credentials was stored under Control Panel → User Accounts → Credential Manager → Manage Windows Credentials.
I just removed these credentials and when I performed
git push it asked me for my GitHub credentials, and it worked like a charm.
you can even directly try this command:
git credential-manager uninstall
This will start prompting for passwords again on each server interaction request.
links : https://stackoverflow.com/questions/15381198/remove-credentials-from-git

Comments
Post a Comment