This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder