简体   繁体   English

从 TFVC 迁移到 git,新的 git 目录结构并维护 TFVC 变更集历史

[英]Migrate from TFVC to git, new git directory structure and maintain TFVC changeset history

I'm attempting to migrate multiple projects within a single TFVC repository to a new git repository.我正在尝试将单个 TFVC 存储库中的多个项目迁移到新的 git 存储库。 I want to retain the file/directory changeset history - I don't care about project work items, etc.我想保留文件/目录变更集历史记录 - 我不关心项目工作项等。

I've found multiple examples for migrating from TFVC to git, however, I want to re-org the directory structure of the new git repository, so my goal is to move a single TFVC project at a time.我发现了多个从 TFVC 迁移到 git 的示例,但是,我想重新组织新 git 存储库的目录结构,因此我的目标是一次移动一个 TFVC 项目。 Is there a way to do this and retain the file changeset history?有没有办法做到这一点并保留文件变更集历史记录?

The examples I have found show to clone the original repository, cleanup the files from TFVC for git, then push the entire repository to git or push single projects which retain the original directory structure - which is not what I want.我发现的示例显示克隆原始存储库,从 TFVC 为 git 清理文件,然后将整个存储库推送到 git 或推送保留原始目录结构的单个项目 - 这不是我想要的。

Migrate your repository normally, then reorganize it.正常迁移您的存储库,然后重新组织它。 Or reorganize it, then convert it to a Git repository.或者重新组织它,然后将其转换为 Git 存储库。

There are no tools that are going to propagate your reorganized folder structure backwards through the commit history.没有工具可以通过提交历史向后传播您重新组织的文件夹结构。

You can download and use Git-TFS to clone ant folder or bran h structure in TFVC and output a Git repo with the full history.您可以下载并使用 Git-TFS 在 TFVC 中克隆 ant 文件夹或 bran h 结构,并输出具有完整历史记录的 Git 存储库。

https://github.com/git-tfs/git-tfs https://github.com/git-tfs/git-tfs

This is normally a bad idea as most folks using a server based source control system (like TFVC or Subversion) end up with significant baggage that they don't want in Git.这通常是一个坏主意,因为大多数使用基于服务器的源代码控制系统(如 TFVC 或 Subversion)的人最终会在 Git 中得到他们不想要的大量包袱。 Much of this baggage are binaries...这些包袱大部分是二进制文件......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM