Git-Tf移动大型Tfs项目的部分 [英] Git-Tf Moving parts of a large Tfs Project

查看:143
本文介绍了Git-Tf移动大型Tfs项目的部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的团队和我有一个拥有许多Visual Studio解决方案和许多项目的大型TFS项目。我们正在将这个项目分成更小的逻辑部分,并将这些部分移动到不同的git存储库中。我已经开始研究git-tf,以便我们可以保留这些文件的历史记录。
我需要做的是从tfs-project中的扁平结构中选择3-4个文件夹,并将它们复制到单个git存储库中。通过使用git-tf clone或git-tf configure / pull,我似乎在tfs项目中获得了每个父文件夹的一个回购。
有没有办法解决这个问题,或者我是否重新安排了tfs-project,以便将我想要的文件夹移动到共同的父文件夹中?

解决方案

没有办法从TFVC有选择地拉入Git,你必须选择一个父分支进行作用域。

然而,一旦你在git中有文件夹有一个分割命令,它可以让你将回购分割成多个部分。这可以让你选择文件夹。



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


My team and I have a large TFS Project with many Visual Studio solutions and many Projects. We are in the process of splitting up this Project into smaller logical parts, and moving the parts into separate git repositories. I have started to look at git-tf so that we can keep the history of the files. 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. By use of git-tf clone or git-tf configure/pull, I seem to get one repo per parent folder in the tfs project. 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?

解决方案

There is no way to selectively pull from TFVC into Git and you must pick a parent branch for scoping.

However, once you have the folders in git there is a Split command that will let you split the repo into multiple parts. This does let you choose folders.

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

这篇关于Git-Tf移动大型Tfs项目的部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆