Git-Tf Moving parts of a large Tfs Project

2019-07-04 03:49发布

问题:

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?

回答1:

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/