【发布时间】: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
我想将 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
不,您不能在现有存储库中重新迁移。你需要一个空文件夹。
但还有更好的。您根本不必重新迁移!
如果您不清理会阻止 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
【讨论】: