【问题标题】:Can I use Git tfs to re-migrate to an existing git repo我可以使用 Git tfs 重新迁移到现有的 git repo
【发布时间】:2019-08-17 14:33:43
【问题描述】:

我想将 tfvc 移动到 tfs git。 我将使用 git tfs 工具 https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/migrate_tfs_to_git.md

push 到 origin 后会有更多的 checkinswto tfvc,因此我想重新迁移。有没有可能,或者这只支持迁移到一个空的存储库?

【问题讨论】:

    标签: git-tfs


    【解决方案1】:

    不,您不能在现有存储库中重新迁移。你需要一个空文件夹。

    但还有更好的。您根本不必重新迁移!

    如果您不清理会阻止 git-tfs 工作的必要 git-tfs 元数据(在 https://github.com/git-tfs/git-tfs/blob/master/doc/usecases/migrate_tfs_to_git.md#clean-commits-optional 中描述),您可以获取新更改并将它们推送到 git 存储库。这是 git-tfs 的正常行为。

    只要做:

    git tfs pull
    git push YOUR_GIT_REMOTE
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-30
      • 2018-05-21
      • 2021-06-09
      • 2011-02-21
      • 2019-08-11
      • 2016-04-20
      • 1970-01-01
      • 2023-03-03
      相关资源
      最近更新 更多