We are trying to move existing backlogs(work-items) and codes in git repo from Azure DevOps server to services. Is there a tool out there to move these items with the capability to retain the history of work item and code merge/check-in? Or if there is a way to do this using the Azure devops REST Api, please share it with me :)
Thank you for your help!
If you only want to migrate git repos and work items from Azure DevOps server to services, you can follow these steps to manually import a repo into an Azure DevOps Services repo with history:
Clone the source repo to a temporary folder on your computer using the bare
option, as shown in the following command line example, and then navigate to the repo's folder. Note that when cloning using the bare
option, the folder name includes the .git
suffix.
git clone --bare https://github.com/contoso/old-contoso-repo.git
cd old-contoso-repo.git
Create a target repo in Azure DevOps Services.
Run the following command to copy the source repo to the target repo.
git push --mirror https://dev.azure.com/contoso-ltd/MyFirstProject/_git/new-contoso-repo
If the source repository has LFS objects then fetch them, and copy them from the source repo to the target repo.
git lfs fetch origin --all
git lfs push --all https://dev.azure.com/contoso-ltd/MyFirstProject/_git/new-contoso-repo
Delete the temporary folder.
Reference link:
There is no default way to migrate work items with history. You would check the following tools:
If you want to migrate all data from Azure DevOps Server to Azure DevOps Services, you would start from the link below:
https://learn.microsoft.com/en-us/azure/devops/migrate/migration-overview?view=azure-devops