Skip to content

Instantly share code, notes, and snippets.

@urakozz
Last active August 29, 2015 14:23
Show Gist options
  • Save urakozz/1f3bac8e4141882a241c to your computer and use it in GitHub Desktop.
Save urakozz/1f3bac8e4141882a241c to your computer and use it in GitHub Desktop.
Multiple accounts + go fix
# ~/.ssh/config
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
Host github-kozz
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_kozz
# ~/.gitconfig
[url "git@github.com:"]
insteadOf = https://github.com/
# project
git remote add origin git@github-kozz:Kozz/testing.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment