Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clone a bitbucket repository?

Tags:

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 https://bitbucket.org/helllamer/mod_openid Cloning into 'mod_openid'... remote: Not Found fatal: repository 'https://bitbucket.org/helllamer/mod_openid/' 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 
like image 922
The user with no hat Avatar asked Jan 25 '16 15:01

The user with no hat


People also ask

How do I clone a Bitbucket Git repository?

Go to the bitbucket repository that you want to clone, on the left pane, there is a clone option. Clicking that will give you a link to the repository. Copy that and try git clone url-from-bitbucket . This should work!

How do I clone a Bitbucket repository to GitHub desktop?

You will need to clone the bitbucket repo to your github desktop: Copy the remote repo URL from BitBucket, On GitHub desktop, go to File > Clone repository. Paste the URL and hit clone.


2 Answers

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.

like image 60
Chris Avatar answered Oct 11 '22 05:10

Chris


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>

like image 37
Ron Lavit Avatar answered Oct 11 '22 05:10

Ron Lavit