Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to clone a bitbucket repository?

Writer Matthew Martinez

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
Cloning into 'mod_openid'...
remote: Not Found
fatal: repository ' not found

System:

git version 1.9.1
uname -a Linux openvpnas2 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
7

6 Answers

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 .enter image description here

Copy this address and use in git in regular way :

git clone <HTTP address of repo>

1

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

Clone with:

hg clone 

For more information about Mercurial please see its Wikipedia page.

7

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.

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.

The following works for me for Mercurial repository.

hg clone 

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

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy