DEV Community

Cover image for Change GitHub account on Windows
Emanuele Bartolesi
Emanuele Bartolesi

Posted on

5

Change GitHub account on Windows

During my awesome experience as LinkedIn Instructor I use several accounts for GitHub.
My private one, one for work and one for recording videos.
Switching accounts is not an easy task to do, especially on Windows.
Windows store the credentials in the Credential Manager which is in the Control Panel.

To change and to switch between accounts, you can open the Control Panel and then navigate to the Credential Manager.
Scroll until an entry called "git:https://github.com".
Click on "Remove" button below the entry.

credential manager

Now you can open or come back to a terminal and launch a command like "git fetch" or "git push".

A new GitHub window will open, and you can click on "Sign in with the browser", enter the credentials and everything come back to work as usual, but with the new account.

Sign in with the browser


Thanks for reading this post, I hope you found it interesting!

Feel free to follow me to get notified when new articles are out 🙂

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay