Is there a command for logging out of git? I\'m turning my computer over to somebody else and don\'t want the git to be attached to my account in the terminal.
I am in a corporate setting and was attempting a simple git pull after a recent change in password.
I got: remote: Invalid username or password.
Interestingly, the following did not work: git config --global --unset credential.helper
I use Windows-7, so, I went to control panel -> Credential Manager -> Generic Credentials.
From the credential manager list, delete the line items corresponding to git.
After the deletion, come back to gitbash and git pull should prompt the dialog for you to enter your credentials.