Reputation: 269
How do I clone a repository from Bitbucket via ssh
instead of http
? I already have git
installed in my local machine (Windows).
Upvotes: 25
Views: 64971
Reputation: 734
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>
Upvotes: 71