How to Git & Github Logout from Command Line


Remove your SSH keys from ~/.ssh (or where you stored them).

Remove your user settings:

git config --global --unset user.name
git config --global --unset user.email
git config --global --unset credential.helper

Or all your global settings:


git config --global --unset-all

OR

cmdkey /delete:LegacyGeneric:target=git:https://github.com