I recently came accross a problem that is perhaps more common to than realized. Problem: we need to have multiple identities on github for a number of reasons, e.g. work versus home account.
First, you would need to update the
~/.ssh/config file to specify different “hosts”:
The above assumes that you have uploaded
~/.ssh/rsa_home.pub to your respective github account.
Next, in the
project/.git/config file, update the
url value to match the above host specified in your configuration file from above. For example
Finally, you might have configured global
.git/config in your project folder):
Update the above, of course, for work projects.