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.
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/