How do I clone a repository from Bitbucket via ssh
instead of http
? I already have git
installed in my local machine (Windows).
Clone a Bitbucket repositoryClick + in the global sidebar on the left, and under Get to work select Clone this repository. Select HTTPS from the menu in the upper-right (unless you've already set up your SSH keys). Copy the clone command.
Launch the SSH agent, run the “$ ssh-add ~/. ssh/id_rsa”, add the SSH public key into the agent, and copy it. Next, go to the “GitHub” settings, and add the SSH key. Lastly, open the repository, copy “SSH URL” and execute the “$ git clone” command with copied URL.
ssh-keygen -t rsa -C "your-email-address"
View profile
-> Manage account
-> SSH keys
-> Add key
cat ~/.ssh/id_rsa.pub
Clone
. Now you can see the SSH url for your repository. Copy it.git clone <ssh-url>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With