You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Select Create > select Repository from the dropdown menu.
Click Import repository from the Create a new repository page.
Select the Source of the code you want to import.
Depending on the Source, the system asks you to provide the following information:
CodePlex: URL, Project name, Repository type
SourceForge: URL, Project name, Repository type
Git: URL, Username/Password combination for private repositories that Require authorization
Note: If your organization has configured a personal access token to retrieve the repository via your Git client or the command line, then you may need to use it in lieu of your username/password within the Bitbucket importer.
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.
Does Bitbucket provides java API for creating and importing repository ?
Hi @NITIN ALETY,
Bitbucket Cloud doesn't have an API for importing a repository, but we do have a REST API for creating a repo:
After creating an empty repo, you can take a mirror clone of the repo from the other hosting provider and then push the mirror clone to the newly created Bitbucket repo.
If you want to migrate from Bitbucket Server to Bitbucket Cloud, we have a plugin to migrate repos: