- git clone https://github.com/NLut/git-keychain-erase.git
- cd git-keychain-erase
- chmod +x git-erase.sh
- sudo mv git-erase.sh /user/local/bin (or any path in $PATH)
- ln -s /usr/local/bin/git-erase.sh /usr/local/bin/git-erase
$ git-erase
- git config --local credential.helper "" (set to no credential helper) for this repo
- git config --global credential.helper "" (set to no credential helper) for all
- git config --local credential.helper "osxkeychain" (set credential helper to osxkeychain)
- git credential-osxkeychain erase (press enter)
- host=github.com (press enter)
- protocol=https (press enter)
- (press enter)