Using GitHub with Multiple User Accounts

Posted on January 27, 2010

2


GitHub is awesome, and I use it for both work projects and personal projects. I have a separate GitHub account for each profile.

What if I want to be able to work with repositories from both GitHub accounts on one machine?

Well, since I connect to GitHub via SSH, all I need to do is configure my SSH setup with multiple SSH keypairs.

GitHub has great documentation on how to do this:

Also, because I’m working with multiple repositories using different personas, I need to make sure that my individual repositories have the user settings overriden accordingly:

Setting user name, email and GitHub token – Overriding settings for individual repos
http://help.github.com/git-email-settings/

Advertisement
Tagged: , ,
Posted in: Uncategorized