DEV Community

loading...

Discussion on: How to use different SSH Keys for different Bitbucket (git) Repositories

Collapse
shane profile image
shane Author

Cool! Do you know if there is a way to choose your SSH Key for use with git clone when first cloning the repo?

Collapse
neerajpro profile image
Neeraj Goswami

yes it is git clone -c core.sshCommand="ssh -i ~/.ssh/your-ssh-fileName" git@github.com:orgname/repo.git