How to change git account in Git bash? How to change git account in Git bash? bash bash

How to change git account in Git bash?


Much simpler, as I explained in "How to sign out in Git Bash console in Windows?":

git credential-manager delete <url>

Here

git credential-manager delete https://github.com

No need to remove the credential helper which is practical for caching user's password.


My situation is I had change my gitlab.com's account email, then my local git repository can not push. saTya 's answer worked, but in windows 10 1903, it is Control Panel -> Credential Manager -> Windows Credentials -> Generic Credentials.


To update your Git credentials, go to Control Panel -> Credential Manager -> Generic Credentials. Find the credentials related to your git account and edit them to use the updated password.

Ref Link:https://cmatskas.com/how-to-update-your-git-credentials-on-windows/