I want to delete my original github account in terminal on my mac and switch to a new github account. How can I do that?
You can use the credential helper to erase your keychain entry by doing the following command in terminal:
$ git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]
To add your new account you can do the following commands:
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR EMAIL ADDRESS"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With