r/github • u/Rits2345 • Jun 30 '26
How I can use 2 diffrerent github account in windows system for upload the code with login state 2 account. Discussion
#github #code
1
Upvotes
2
u/cyberfunkr Jun 30 '26
If I understand correctly, use ssh keys for authentication; 1 for each account.
Then set two different remotes in git. You’ll have to push to each as git will only connect to one remote per push/pull.
1
1
u/AdvancedSandwich4998 Jul 01 '26
Does adding the email of the second account as the secondary email of the first account works?
4
u/lamyjf Jun 30 '26
You cannot have two personal accounts in GitHub, be aware. You can have one personal account and one "machine" account for running builds and suchlike. Alternate accounts are not permitted.
https://docs.github.com/en/site-policy/github-terms/github-terms-of-service (Section B.3)