How to clone a bitbucket repository?

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.


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>


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.