Skip to content

Instantly share code, notes, and snippets.

View rcj4747's full-sized avatar
⌨️

Robert Jennings rcj4747

⌨️
View GitHub Profile
@rcj4747
rcj4747 / multiple_github.txt
Created March 24, 2016 15:58
[TIP] manage multiple github accounts
From: http://everythingsysadmin.com/2016/03/two-github-accounts.html
Someone recently commented that with Github it is "a pain if you want to have a work and personal identity."
It is? I've had separate work and personal Github accounts for years. I thought everyone knew this trick.
When I clone a URL like [email protected]:TomOnTime/tomutils.git I simply change github to either github-home or github-work. Then I have my ~/.ssh/config file set with those two names configured to use different keys:
# TomOnTime
Host home-github.com
HostName github.com