Skip to content

Instantly share code, notes, and snippets.

@hoyajigi
Created April 19, 2022 02:16
Show Gist options
  • Save hoyajigi/79fd75a752039d418aaab099b155e91e to your computer and use it in GitHub Desktop.
Save hoyajigi/79fd75a752039d418aaab099b155e91e to your computer and use it in GitHub Desktop.
Logout current GitHub credentials
#!/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