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?
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?
type the following command in terminal:
$ git credential-osxkeychain erase
host=github.com
protocol=https
[Press Return]
If succesful, nothing will print out
To test that it works, try and clone a repository from GitHub. If you are prompted for a password, the keychain entry was deleted
Source: https://help.github.com/articles/updating-credentials-from-the-osx-keychain/
To remove Github account from git in mac.
ssh then you will find an SHA256 key with noname. Delete that key also.Now go to terminal change your global user.name and user.email with your new account details. Then try to push! it will ask you verify with new account credentials.