DEV Community

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

Posted on

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 πŸ™‚

Top comments (0)