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

Migration from AzureDevops to BitBucket cloud

Sasidhar Navuluri February 21, 2024

Hello Team, 

I am looking to migrate few repositories from AzureDevOps to Bitbucket cloud. Can we use any REST APIs or Commands to perform this repo migration activity from ADO to BitBucket or we can only use GUI for this (import repository option in GUI)?

If we have any such useful commands or APIs please point me to those.

 

Also, curious to know if there are any REST APIs for migrating repositories from ADO to Bitbucket Server.

 

Regards,
Sasidhar N

 

 

1 answer

1 vote
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

Hi @Sasidhar Navuluri 

Please find the article that describes the migration process, you could have automation written if you have a large chunk of repositories

https://www.atlassian.com/git/tutorials/git-move-repository

$ git clone --bare https://external-host.com/EXTUSER/REPO.git
# Makes a bare clone of the external repository in a local directory
$ cd REPO.git 
$ git push --mirror https://HOSTNAME/USER/REPO.git
# Pushes the mirror to the new repository on your GitHub Enterprise Server instance

If the repositories are in small numbers you could just go with importing the repository

Thanks,
Pramodh

Sasidhar Navuluri February 22, 2024

Thank you so much @Pramodh M for looking into it.

My requirement is to push that bare cloned repository from ADO to bitbucket cloud. I am little confused on what url to use for that push. Can you please help me with that.

 

Regards,
Sasidhar N

Sasidhar Navuluri February 22, 2024

Should I create a new repository using BitBucket's interface. Take a note of that clone URL. Do the remote add (git remote add <name> <url>), then push everything (git push <name> --allgit push <name> --tags).

 

Or do we have any better solution?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events