How do I move an Azure DevOps project to a different organization?

前端 未结 3 847
抹茶落季
抹茶落季 2021-02-12 01:13

I have got a project in an old org (from VSTS), that I want to move to my new one.

I can\'t see any options in Azure DevOps on migrating projects, or any informa

相关标签:
3条回答
  • 2021-02-12 01:37

    If your Azure Devops project only tracks code versions using a single Git repo, hence no boards, user stories, tasks, pipelines, etc. then you can do the following:

    1. Clone your project repo.
      • For example with Visual Studio.
      • You don't need to clone if you already have a local repo.
    2. Destroy the association with the remote.
      • For this typically, you need to open a command line prompt in the folder that contains the .git database folder, most likely the solution folder of Visual Studio and type git remote rm origin.
      • Here is an example using git bash showing the content of the solution folder, including the .git database and the *.sln Visual Studio solution file:
    3. Open the solution with Visual Studio if not already done.
      • It should now show that you have many commits waiting to be pushed to a remote. For illustration purpose, my toy project only have 8 commits in total.
    4. Click the up arrow and choose your new remote, say a brand new Azure DevOps project, in the organization of your choice, then push.
    5. You are now done cloning the project in another organization. If needed, then destroy the project in the old organization to complete the "move" operation.
    0 讨论(0)
  • 2021-02-12 01:38

    If you just need to move repos, you can use the built in clone functions:

    1. Go to the Azure Devops source repo -> Files
    2. Click "Clone"
    3. Choose "Generate Git Credentials"

    1. Create the target repo in the target Azure DevOps
    2. Choose "Import a repository"
    3. Use the URL and credentials from Step 3

    1. Done
    0 讨论(0)
  • 2021-02-12 01:52

    This is not supported today. But this feature was planned to develop: make it possible to move a Team Project between Team Project Collections

    0 讨论(0)
提交回复
热议问题