Skip to content

Instantly share code, notes, and snippets.

@adedayojs
Forked from richchurcher/git-logout
Created July 2, 2019 15:10
Show Gist options
  • Save adedayojs/77c6871e70164d8058a05e6faf2fbd24 to your computer and use it in GitHub Desktop.
Save adedayojs/77c6871e70164d8058a05e6faf2fbd24 to your computer and use it in GitHub Desktop.
#!/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