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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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> --all
, git push <name> --tags
).
Or do we have any better solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.