Created
July 23, 2018 16:18
-
-
Save bananatron/3ca2a8be073700c8207e64b8770e233a to your computer and use it in GitHub Desktop.
Github Git Logout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Logout current GitHub credentials and remove global user.name, user.email | |
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase | |
git config --unset-all --global user.name | |
git config --unset-all --global user.email |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment