views:

52

answers:

1

Trying to work on my both my actual "work" repos, and my personal repos on git hub, from my computer.

The work account was set up first, and everything works flawlessly.

My personal account, however cannot seem to push to my personal repo, which is set up under a different account/email.

I've tried copying my work key up to my personal account, but that throws an error, because of course a key can be only attached to one account.

How can I push/pull to and from both accounts, from their respective github credentials?

+5  A: 

yes you can: http://blog.martin.aatmaa.net/2010/01/27/using-github-with-multiple-user-accounts/

all you need to do is configure your SSH setup with multiple SSH keypairs.

GitHub has great documentation on how to do this:

Also, if you're working with multiple repositories using different personas, you need to make sure that your 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/

Hope this helps.

PK

Pavan