Get started with Bitbucket Cloud
New to Bitbucket Cloud? Check out our get started guides for new users.
To get your existing code into Bitbucket Cloud quickly from another hosting site or system, Bitbucket provides an importer to grab a repository. This importer works if you have your code in CodePlex, GitHub, Google Code, SourceForge, or another Git-based hosting site. However, if your hosting site doesn't fall into one of these sources or you don't have a URL to enter, you can convert your code to Git.
You can import from popular code hosting sites via the Bitbucket importer. When you import code from an external Git repository, the importer simply creates a clone of the repository which is then hosted in Bitbucket.
Importing a Git repo from a self-hosted server
If your Git repository is on a self-hosted server, you must be running Git services to import the repository.
To import code:
Select the Create button and select Repository from the dropdown menu.
Click Import repository from the Create a new repository dialog.
Enter the URL.
Select the Workspace.
Select the Project.
Enter a Name for your new repository.
Uncheck This is a private repository if you want the repository to be public.
Select the Repository type.
Expand Advanced settings and fill out the rest of the page if necessary.
Press Import repository.
Clone your repository when you're done importing it.
If you have a Subversion repository, you need to convert it to Git first before you can import it to Bitbucket. To do this, refer to our guide Migrate to Git from SVN.
Was this helpful?