ref
Generate an SSH-key:
ssh-keygen -t ed25519 -C "[email protected]"
Follow the prompts and decide a name, e.g. id_ed25519_example_company.
Copy the SSH public-key to GitHub from ~/.ssh/id_ed25519_doe_company.pub and tell ssh about the key:
ssh-add ~/.ssh/id_ed25519_doe_company
Create a config file in ~/.ssh with the following contents:
Host github-doe-company
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_doe_company
Add your remote:
git remote add origin git@github-doe-company:username/repo.git
or change using:
git remote set-url origin git@github-doe-company:username/repo.git
https://github.com/settings/keys
Host github-gf
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_gf
Host github-obar1
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_obar1
git clone git@github-gf:work/random.git
git clone git@github-obar1:obar1/random.git