git logo

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

This post was most recently updated on October 14th, 2022.

< 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!

Solution

Table of Contents

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.

References

mm
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments