#17 Working with multiple GitHub accounts on windows (without typing password each time)

Published: 18 September 2022
on channel: Power Tester
115
4

GitHub: https://github.com/PramodKumarYadav/zero

Problem statement: It seems on windows machine, working with multiple github accounts is not as seamless as it maybe
on linux or mac. This tutorial helps solve that issue. If you know of smarter ways, please feel free to drop a link
in the comment of the video.

Goal:
To learn how to work with multiple github accounts.

Disclaimers:
1) Expect it to be a long video due to the complexity and steps involved in the topic.
2) For demonstration purposes, I will create all the keys and show you working with them real time but once done, for
security reasons, I will delete all the private/public keys and create new ones - so do not worry about them being
exposed in the demo.
3) Will share some common pitfalls that you can avoid that I encountered while working on this topic.

Objectives: Learn how to:
1) log in to one account at a time, by removing the token for another from credentials manager (not preferred).
using github online authentication.
2) add rsa tokens for each type of account.
3) load tokens manually every time you login to your machine. - using gitbash ssh-add command.

Whats next:
4) load tokens automatically - using .profile file in root.

Whats next to next:
5) have the correct emails for each account type (personal or company) - having override .gitconfig files for each type of account.
6) using vscode for git operations - rather than bash.
7) you cannot add commits unless you have a user.name and email setup. so use condition only for your company projects.
Keep for everything else, your personal account in global .gitignore file.

GitHub: https://github.com/PramodKumarYadav/zero

Reference:
https://www.freecodecamp.org/news/man...

https://docs.github.com/en/authentica...


Watch video #17 Working with multiple GitHub accounts on windows (without typing password each time) online without registration, duration hours minute second in high quality. This video was added by user Power Tester 18 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 115 once and liked it 4 people.