We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
The configuration in file config works. Thank you.
Awesome! This worked for me, I spent around of 3 hours troubleshooting an error regarding offering wrong ssh key, but this post helped me to fix it.
Thanks!
Thank you very much. Just to point that, when the repo is already cloned and belongs to an organisation (or another user), remote url would be:
git remote set-url origin git@github.com-user1:organisation/projectname.git
Wow, basically just copied your article...
https://blog.developer.atla...
Thanks! This let me use multiple deploy keys on one machine. It solved the "Error: Key already in use" problem where GitHub does not let you duplicate deploy keys for different repositories.
Very helpfull, thanks !
Thanks!
This is brilliant! Appreciate the effort.
How I can add remote for specific SSH profile?
git remote add origin git@bitbucket.org:userofrepo/reponame.git reponame_githubusername
What I am doing wrong? I am unable to add origin this way to map it to right SSH profile
Basically I am having this error when I try to use git remote update, it asks me for right passphrase but here is error:
Fetching heroku
Fetching origin
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin
so what you want to do is: git@bitbucket.org-userName for your remote url and then in your `.git/config` file you would do: `Host bitbucket.org-userName
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa`
Thank you! It really stopped me from add/delete ssh key at least thrice a day.
Thanks!
This also works if you have one account but use different ssh keys associated with different email addresses for different purposes. Thanks so much for this, it really helped me.
Glad you found it useful :-)
Thanks for this -- it really helped me with GitHub. Most of the other tips I've read about trying to use multiple keys at GitHub (with different identities) were pretty awkward or involved some customization of git (via scripts).
In the user.name in the config file, I thought it was your real name "Bob Doe" versus an actual Username like "bdole". Am I wrong? Is this name important to be as you have specified it? Thx.