【问题标题】:Migrate a TFVC repository from one project to another?将 TFVC 存储库从一个项目迁移到另一个项目?
【发布时间】:2020-07-06 19:19:47
【问题描述】:

我有一个 TFVC 存储库要迁移,但我只能找到一种方法将其迁移到 git 或向后迁移。

【问题讨论】:

    标签: azure-devops migration tfvc


    【解决方案1】:

    TFVC 不支持团队项目之间的迁移。您可以考虑迁移到临时 git,然后迁移到新的 TFVC 存储库 (Migrate Git repository to new TFVC repository),但这可能过于复杂。

    【讨论】:

      【解决方案2】:
      Step 1 : Download git-tfs using cmd, use the below given command to download.
      curl -L -o  GitTfs-0.30.0.zip "https://github.com/git-tfs/git-tfs/releases/download/v0.30/GitTfs-0.30.0.zip"
      
      Step 2 : unzip GitTfs-0.30.0.zip and check "git-tfs.exe -version" in the cmd prompt.
      
      Step 3 : Cloning tfvc repository from azure.
              git-tfs.exe clone http://tfs:8080/tfs/DefaultCollection $/some_project
                (wait for git-tfs to pull your history) (-or-)
              git-tfs.exe quick-clone http://tfs:8080/tfs/DefaultCollection $/some_project
                (cd some_project and hack away, using only git, until you need to share with TFS…)
      
      Step 4 :  Pushing git repository 
      git remote add new git@newserver:newproject.git
      note - git@newserver:newproject.git is Bitbucket repo
      
      Step 5 : git push --mirror new
      
      

      【讨论】:

        猜你喜欢
        • 2015-11-01
        • 1970-01-01
        • 2018-10-23
        • 2021-10-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多