Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Does Bitbucket provides java API for importing a repository ?

NITIN ALETY
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2022

url : https://support.atlassian.com/bitbucket-cloud/docs/import-a-repository/

 

 

  1. Select Create > select Repository from the dropdown menu.

  2. Click Import repository from the Create a new repository page.

  3. Select the Source of the code you want to import.

  4. 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.

  5. Enter a Name for your new repository.

  6. Uncheck This is a private repository if you want the repository to be public.

  7. Select the Repository type.

  8. Expand Advanced settings and fill out the rest of the page if necessary.

  9. Press Import repository.

 

Does Bitbucket provides java API for creating and importing repository ?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 30, 2022

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:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events