Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove one of two GitHub accounts on my terminal/computer?

I followed this tutorial to have two GitHub accounts. I did this because I have a desktop PC and a Macbook laptop, both of which I use to code. Turns out that it was a nightmare managing two accounts. I faced problems such as:

  1. Not being able to push changes on repositories
  2. Encountering numerous repository errors which discouraged me from using Git or GitHub

which tells me that I should only have one account, and use the same account on both computers. So, my questions are:

  1. Do I just erase the SSH keys for the account I don't want both of my computers in my GitHub account settings?
  2. Or do I also have to remove the id_rsa_xxxxx.pub that I did for the account as well?
  3. Do I also have to reconfigure my "git global" on the terminal (bash)?

I appreciate any input since I have not used Git properly since I did this :( Thanks so much!

like image 364
JR P Avatar asked Jan 26 '26 07:01

JR P


1 Answers

Go to control panel -> credential Manager -> Windows Credentials. Find Git or GitHub, click on it, and press the remove button.

like image 112
Turret Avatar answered Jan 27 '26 21:01

Turret



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!