How to clone a project from Bitbucket into Intellij IDEA?

Mark Korzhov picture Mark Korzhov · Aug 9, 2014 · Viewed 34.5k times · Source

I tried VCS -> Checkout from Version Control -> Bitbucket (Bitbucket plugin).

IDE shows the following:

Login to Bitbucket ...
Getting list of repositories ...

That's all. No dialog boxes with a selection of the repository.

I would be grateful for your help.

Thank you.

Answer

Javaru picture Javaru · Aug 11, 2014

This is/was a bug in the third-party BitBucket plug-in. See Plugin does not work well with IDEA 13 A comment on that report indicates that the plug-in is not actively being maintained. But one of the community members did create a patch for it and has an alternative build of the plug-in available for download.

That said, you can clone a bitbucket repository without the BitBucket plug-in. You do not mention if the repo is a Git or Mercurial repo (as BitBucket supports both). But if you configure Mercurial ang Git (see Bitbucket 201 Bitbucket with Git and Mercurial) you can just clone it via VCS > Checkout from Version Control > Mercurial or VCS > Checkout from Version Control > Git. Just use the HTTPS or SSH URL shown in the "Clone" tab for the repository on bitbucket.