Migrating an Azure DevOps Repo to GitHub

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:

Creating a new repository on GitHub

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:

The ‘Import code’ button

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.

Getting your Azure DevOps repo URL from the ‘Clone Repository’ dialog

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.

Picture of Aleksandar Dickov

Aleksandar Dickov

Aleksandar is a seasoned professional with a decade of experience in software development. He holds a B.S. in Computer Science from the Faculty of Technical Science. Throughout his career, he has actively contributed to the creation of web and desktop applications, acquiring proficiency in languages such as C# and a strong command of the .NET platform. Thriving on the challenge of solving complex problems, Aleksandar is known for his result-oriented approach and unwavering dedication to delivering impactful solutions. His passion for software development extends beyond the professional realm, believing in the continuous pursuit of knowledge to enhance his contributions to any team. Beyond the world of coding, Aleksandar finds joy in basketball, football, and skiing. Whether it's exploring new places, engaging in sports, or maintaining a blog, he embraces a well-rounded approach to life.

Free Consultation

Sign up for a FREE consultation with one of Trailhead's experts.

"*" indicates required fields

This field is for validation purposes and should be left unchanged.

Related Blog Posts

We hope you’ve found this to be helpful and are walking away with some new, useful insights. If you want to learn more, here are a couple of related articles that others also usually find to be interesting:

How to Deploy a React Application for Free

React has changed web application development. It has become quite a bit easier to make a good interactive website than it used to be. A React application in its compiled and deployed state is just a static website, or website that contains

Read More

Our Gear Is Packed and We're Excited to Explore With You

Ready to come with us? 

Together, we can map your company’s software journey and start down the right trails. If you’re set to take the first step, simply fill out our contact form. We’ll be in touch quickly – and you’ll have a partner who is ready to help your company take the next step on its software journey. 

We can’t wait to hear from you! 

Main Contact

This field is for validation purposes and should be left unchanged.

Together, we can map your company’s tech journey and start down the trails. If you’re set to take the first step, simply fill out the form below. We’ll be in touch – and you’ll have a partner who cares about you and your company. 

We can’t wait to hear from you! 

Thank you for reaching out.

You’ll be getting an email from our team shortly. If you need immediate assistance, please call (616) 371-1037.