2 ms·
There's an option in newer git. For cloning new repo: git clone -c "core.sshCommand=ssh -i ~/.ssh/bitbucket-work -F /dev/null" git@bitbucket.com:example/exampl
by olddustytrail 4y ago
There's an option in newer git. For cloning new repo:
git clone -c "core.sshCommand=ssh -i ~/.ssh/bitbucket-work -F /dev/null" git@bitbucket.com:example/example
For existing repo:
git config core.sshCommand "ssh -i ~/.ssh/bitbucket-work -F /dev/null"
Where "bitbucket-work" is the name of the key for that particular repo.