Personal notes on working towards two different Github-accounts on the same machine.
One default ssh-key already exists: ~/.ssh/id_rsa
ssh-keygen -t rsa -C "[email protected]" -f "id_rsa_my_user"
pbcopy < ~/.ssh/id_rsa_my_user.pub
ssh-add ~/.ssh/id_rsa_my_user
Host github.com-my_user (An identifier for this Github account. Used it local .git-config to locate repo.)
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_my_user
git clone [email protected]_user:github-username/repo_name.git