Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

How to create a git repository in bitbucket server from a shell script

Jurgen Schober
Contributor
January 8, 2019

I want to split a huge repository into a lot of separate ones using the folders from the main repository. I know how to separate folders from the main repo an create new ones. However I have literally 100s of those. The only way to create a repo on the (standalone) bit bucket server is using the server frontend (web browser). Is there a simple way to do this from a script (git bash)? Is the REST API the only way to do that (with a plain http:// protocol, not HTTPS!)? Any tools I can use?

1 answer

1 accepted

0 votes
Answer accepted
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2019

Hi @Jurgen Schober,

Yes, this is possible with REST API. 

For example you can use this migrate_bitbucket_server_to_bitbucket_cloud

and break down into the portion you'd like to use.

Jurgen Schober
Contributor
January 11, 2019

I am going with this answer for now. However, it doesn't exactly answer my question - but I should be able  to get everything I need from there. If anyone has more examples (especially using a local server without requiring HTTPS I would appreciate it).

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Bitbucket Events