A popular topic nowadays is integration or migration between GitHub and Azure DevOps. Most people who work with .NET are used to working with Azure DevOps, but GitHub is getting more and more popular with that crowd as a topic of conversation, DevOps tool, and code hosting platform.
If you’ve been thinking about switching from Azure DevOps to GitHub, there are several ways to migrate your code. The best options allow you to move all of your code AND the complete history of branches and commits.
Below I’ve outlined one of those methods for you.
Migrating Your Git Repository
The easiest way to start your migration from Azure DevOps is to go to GitHub to create new repository:
After creating your new repository, you will need to import your code to it. You can do that by clicking on the “Import code” button as showed below:
You will need your URL to your Azure Dev Ops repository, which you can find inside Azure DevOps under Repos. Clicking the Clone button will bring up the ‘Clone Repository’ dialog with your repository’s URL for you to copy.
Paste the URL into GitHub where it says “Your old repository’s clone URL” and click “Begin Import”. You will be asked for your Azure DevOps credentials. Once you’ve entered them, the import will begin, and your code will be moved to GitHub with all the commit and revision history.