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:
https://learn.microsoft.com/en-us/azure/devops/repos/git/import-git-repository?view=azure-devops#manually-import-a-repo
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