Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to delete a github account in terminal

Tags:

git

github

macos

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?

like image 924
user5574376 Avatar asked Dec 18 '22 18:12

user5574376


1 Answers

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"
like image 123
darkfall Avatar answered Dec 30 '22 05:12

darkfall



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!