Skip to content

Instantly share code, notes, and snippets.

@rvteja92
Last active September 12, 2018 15:04
Show Gist options
  • Save rvteja92/a25cf2c59f6072666ad881b517a88280 to your computer and use it in GitHub Desktop.
Save rvteja92/a25cf2c59f6072666ad881b517a88280 to your computer and use it in GitHub Desktop.
Host bitbucket.org-name1
    HostName bitbucket.org
    User git
    IdentityFile ~/.ssh/halc_bitbucket_rsa
    IdentitiesOnly yes

Host bitbucket.org-name1
    HostName bitbucket.org
    User git
    IdentityFile ~/.ssh/bitbucket_rvteja92
    IdentitiesOnly yes
    

Set the first repo's origin (remote) to

git@bitbucket.org-name1:org/repo.git

and that of second repo to

git@bitbucket.org-name2:org/repo.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment