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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket repo import

Is there a developer API for the import repository function in Bitbucket Cloud?

 

I ran across this question, but it's a bit dated, and the the response was vague.

https://community.atlassian.com/t5/Answers-Developer-Questions/Bitbucket-API-Import/qaq-p/463734

 

Is there an API for importing another git repository? We're trying to work around the lack of repo templates in BB Cloud.

1 answer

Yes, there is an API for the repository that allows you create a new one, have a look at repositories{workspace}{repo_slug} 

But note that you cannot populate the repository via the API, that has to be done via Git commands on a local copy of the repository that you then push up to Bitbucket.

Yeah, I know about that. I'm looking specifically to invoke the "import repository" functionality that is in the UI. I assume that it'd doing a clone and push under the covers, but I was hoping to not have to build that myself.

 

This thing:

Annotation 2020-08-21 201837.png

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,744 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you