...
- Generate a unique ssh key for each repository using ssh-keygen command line tool
For Windows, also use ssh-add command line tool to add private keys to ssh agent
Add public keys to each repository on github from settings tab
Generate a config file in your ssh directory (e.g. ~username/.ssh/config) with an entry for each repository and matching ssh key, e.g.:
Host github.com:slaclab/Lucretia.git
Hostname github.com
IdentityFile ~/.ssh/id_lucretia
Host github.com:slaclab/facet2-lattice.git
Hostname github.com
IdentityFile ~/.ssh/id_facet2-lattice
now you can clone with git clone git@github.com:slaclab/facet2-lattice.git etc and successfully perform push/pull operations and so on.
...