How do I use Git Extensions with a Bitbucket repository?

后端 未结 2 1458
长情又很酷
长情又很酷 2020-12-22 20:34

I have repository on both github.com and bitbucket.org, and I am very familiar using Git Extensions for all repository functions... But when I started using bitbucket.org re

2条回答
  •  不知归路
    2020-12-22 20:47

    I haven't fully tested it, but these steps allowed me to clone a Bitbucket repository in Git Extensions.

    You can use PuTTY to generate a public/private SSH key, then add that key to Bitbucket.

    1. Run GitExtensions\PuTTY\puttygen.exe
    2. Click Generate
    3. Click Save public key (as a text file)
    4. Click Save private key (as a ppk file)
    5. Run GitExtensions\PuTTY\pageant.exe C:\path\to\ppk-file.ppk
    6. Log into Bitbucket
    7. Go into Account settings (SettingsSecurity → SSH keys*)
    8. Paste your public key into the SSH keys text input as (spaces are important, do not include square brackets around the public key):

      ssh-rsa [AA-YOUR-PUBLIC-KEY-ALL-ONE-LINE-SPACES-REMOVED-==] youremail@domain.com

    9. Click Add key
    10. In Git Extensions, click Clone repository
    11. Use the SSH repository link on Bitbucket as the repository to clone
    12. Click Load SSH key
    13. Browse to and load the ppk file
    14. Click Clone

提交回复
热议问题