Created
April 19, 2022 02:16
-
-
Save hoyajigi/79fd75a752039d418aaab099b155e91e to your computer and use it in GitHub Desktop.
Logout current GitHub credentials
This file contains 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-manager-core 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