Wednesday 23 November 2022

Running multiple identities on GitHub on Windows

 

You can run multiple identities on GitHub, by putting a copy of the two files

id_ed25519 and id_ed25519.pub 

in the 

C:\Users\<username>\.ssh 

directory.

It is worth creating two subfolders

C:\Users\<username>\.ssh\user1 and

C:\Users\<username>\.ssh\user2

to keep the original copies of the keys and copy them into the parent folder as required.

If you try and clone a GitHub repo under the wrong user, than isn't permissioned, then you will get the error:

Cloning into 'myrepo'...

remote: Repository not found.

fatal: repository 'https://github.com/myteam/myrepo.git/' not found