I want to logout from Git bash and login it again as another user .
I have googled but can\'t find any solution.
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.
You don't have to "logout" or "login": regarding git, who you are is determined by:
git config user.name
git config user.email
Change those two settings while being in a repo, and you are someone else, when it comes to creating commits.
That has nothing to do with git remote -v, that is with the user account you will use to push to the upstream repo.
use
git config --global user.name [Your User name]
git config --global user.email [Your Email]