简体   繁体   English

Git-Tf移动大型Tfs项目的部分

[英]Git-Tf Moving parts of a large Tfs Project

My team and I have a large TFS Project with many Visual Studio solutions and many Projects. 我的团队和我有一个大型TFS项目,包含许多Visual Studio解决方案和许多项目。 We are in the process of splitting up this Project into smaller logical parts, and moving the parts into separate git repositories. 我们正在将此项目拆分为较小的逻辑部分,并将这些部分移动到单独的git存储库中。 I have started to look at git-tf so that we can keep the history of the files. 我已经开始查看git-tf,以便我们可以保留文件的历史记录。 What I need to do is to pick say 3-4 folders from a flat structure in the tfs-project and copy them into a single git repository. 我需要做的是从tfs-project中的平面结构中选择3-4个文件夹并将它们复制到一个git存储库中。 By use of git-tf clone or git-tf configure/pull, I seem to get one repo per parent folder in the tfs project. 通过使用git-tf clone或git-tf configure / pull,我似乎在tfs项目中获得每个父文件夹一个repo。 Is there a way to get around this, or do i rearrange the tfs-project so that the folders I want are moved into a common parent folder? 有没有办法绕过这个,或者我重新排列tfs项目,以便我想要的文件夹移动到一个公共父文件夹?

There is no way to selectively pull from TFVC into Git and you must pick a parent branch for scoping. 没有办法有选择地从TFVC拉入Git,你必须选择一个父分支进行范围界定。

However, once you have the folders in git there is a Split command that will let you split the repo into multiple parts. 但是,一旦你在git中有了文件夹,就会出现一个Split命令,可以将repo分成多个部分。 This does let you choose folders. 这可以让你选择文件夹。

http://lostechies.com/johnteague/2014/04/04/using-git-subtrees-to-split-a-repository/ http://lostechies.com/johnteague/2014/04/04/using-git-subtrees-to-split-a-repository/

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

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