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

Опубликовано: 18 Сентябрь 2022
на канале: 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...


Смотрите видео #17 Working with multiple GitHub accounts on windows (without typing password each time) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Power Tester 18 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 115 раз и оно понравилось 4 людям.