git logo

How to import an Azure DevOps Git repository… From another Azure DevOps organization?

This post was most recently updated on March 13th, 2023.

< 1 min read.

A while ago, I needed to move an Azure DevOps Git repository from one organization to another. And that was far easier than I thought. For once, a nice surprise from Git _and_ Azure DevOps ūüėÄ So, let me tell you how that‚Äôs done!

Well, how it’s done if it goes well, anyway. And if still works as it used to when you’re reading this. We’ll see!


Time needed: 5 minutes

How to move an Azure DevOps repository from one organization or team project to another?

  1. Navigate to the source repo

    First, find the Azure DevOps team project that currently hosts the git repositories, and select the repository you want to move.

  2. Grab the URL to clone the repository

    Copy the clone URL to the clipboard and save it somewhere. You’ll need it momentarily!

  3. Generate your git credentials

    Copy the credentials (user name and password) to the clipboard and save them somewhere. You’ll need them momentarily!

  4. Start the repo import wizard

    Select ‚Äúimport repository‚ÄĚ from the dropdown list of your repositories.

  5. Enter the required details for the import

    Paste the Clone URL you stored earlier.

    Select ‚ÄúRequires Authentication‚ÄĚ as your git repo on Azure DevOps probably does require authentication. And then paste the credentials you stored earlier!

    The name of the repository should be automatically populated from the URL you supplied, but you can also change it.

  6. You should be good!

    Boom! Yeah, it should’ve been that easy.

Was it successful? Did the import fail miserably? Let me know in the comments section.


0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments