简体   繁体   中英

ideas on migrating large tfvc repository to git

Currently we have our entire code in one large tfvc repository (around 80GB) and we have around 10 build pipelines with that tfvc repository as version control. We have also given workspace mappings. And there are few folders which are common for all the build pipelines.

Now we are planning to migrate from tfvc to git (including history). For this, we opted for git-tfs command.

Which option is better?

  • migrating entire large tfvc repository to single git repository? or
  • migrating entire large tfvc repository to multiple git repositories?

I tried migrating to single git repository but there is no option for workspace mappings. (at this time we cannot use yaml based pipelines).

I also tried migrating to multiple git repositories. But i need to specify the common folders in all the repositories.

Can someone suggest me the best approach.

I tried migrating to single git repository but there is no option for workspace mappings.

For this issue , please refer to this blog , I think it will help you.

For Large or dispersed repositories:

There are a couple scenarios where this interoperability does not work so nicely. One is if your TFS workspace has a lot of mappings. Both git-tfs and git-tf can only clone a single TFS server folder . This is fine if all of your mappings fall under a single root folder that is of a manageable size. However, these multi mapping workspaces often have so many mappings precisely because the root is too large to map on its own.

This blog gives some possible ways on how to deal with this situation.

In this document ,it also states "git-tfs is designed to work outside of any existing TFS workspaces."

In addition , here is the document about "map your familiar TFVC commands and workflows to Git" you can refer to.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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