Missed Team ’24? Catch up on announcements here.

×
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 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 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
AUG Leaders

Atlassian Community Events