this works with URLs like [email protected]:...., not https
Use this command:
ssh-keygen -t rsa -C "email address of each account"
# make sure you name the key file accordinglyAccount Overview -> SSH Public Keys
Upload the content of the public key
#---- default
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
#---- for each account do:
Host github-COMPANY
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_COMPANYgit remote add origin git@github-COMPANY:Company/testing.git