How to clone a bitbucket repository?

前端 未结 6 777

Getting back to work after a while it seems I don\'t know how to clone a bitbucket repository. Any idea why I get the \"not found\" error?

git clone --verbose          


        
相关标签:
6条回答
  • 2021-02-05 06:02

    It is simple and same as in GitHub. Go to Bitbucket repository from your browser and copy url. Open a terminal in desired location, where you want to clone the repository, and then type this:

    git clone <copied url of repo.>
    

    Then it ask your Bitbucket username and password. After providing them, you can clone it.

    0 讨论(0)
  • 2021-02-05 06:03

    At best you need to simply download so you could either use sourcetree or use Mercurial to enjoy cloning if you are not the cmd type.

    0 讨论(0)
  • 2021-02-05 06:12

    Most probably it is a private repository where you have access permissions and I do not. What you need to do is move your mouse on the three dots on the left pane at the top (refer the image) and then you'd get a pop up where you'd find the clone option. Click on that and you'd get a command like hg clone bitbucket-url (It is a Mercurial repository as mentioned by Chris). Copy that and paste it on your terminal. You'll be able to clone that if you have permissions to access the repository.

    0 讨论(0)
  • 2021-02-05 06:20

    This is a Mercurial repository, not a Git repository. Bitbucket supports both systems.

    Clone with:

    hg clone https://bitbucket.org/helllamer/mod_openid
    

    For more information about Mercurial please see its Wikipedia page.

    0 讨论(0)
  • 2021-02-05 06:25

    The following works for me for Mercurial repository.

    hg clone https://[YourUserName]@bitbucket.org/tr_radlab/radlab-for-windows/branch/default
    

    Put your user name in place of [YourUserName] in above Url.

    0 讨论(0)
  • 2021-02-05 06:29

    On the left side of bitbucket screen there is a vertical column with buttons. The second button from the top is "CLONE" button . Press on this button .You will get HTTP address .

    Copy this address and use in git in regular way :

    git clone <HTTP address of repo>

    0 讨论(0)
提交回复
热议问题