Search code examples
gittfsazure-devopsmigrationtfvc

Move some projects from a user account to another


I am going to change my work company, but I will continue working on the same projects. I have some projects on Azure DevOps with Git and another one with TFVC. I have used these source control tools integrated on Visual Studio, I have never used the console commands.

I want to "copy" the source code with all changes of some projects (not all projects) from one account to another. And if it is possible to migrate TFVC to Git. How can I do it?


Solution

  • First of all, migrate the TFVC code to Git with the git-tfs tool.

    When your all code in Git you can move the code easily to another project:

    1) Clone the repository to a local folder.

    2) Go to TFS/Azure DevOps and create a new Git repository.

    3) Push the local repo to TFS/Azure DevOps repo.

    The best way to do it is with Command Line:

    1) git clone old-repo-url

    2) Create the new repo from TFS/Azure DevOps portal.

    3) git remote add origin new-repo-url

    git push -u origin --all