简体   繁体   English

在Visual Studio Online上将本地TFS迁移到git

[英]Migrate on-premises TFS to git on Visual Studio Online

I have a server running Team Foundation Server 2010, and I'd like to migrate it to Visual Studio Online. 我有一台运行Team Foundation Server 2010的服务器,我想将其迁移到Visual Studio Online。 If possible, I'd also like to convert each project/branch (currently using TFVC) to git so that we use that from now on from VS Online. 如果可能的话,我还要将每个项目/分支(当前使用TFVC)转换为git,以便我们从现在开始使用VS Online。 The official method for migrating TFVC to VS Online only imports TFVC solutions, not git, so as far as I understand a local conversion wouldn't be possible. TFVC迁移到VS Online 的官方方法仅导入TFVC解决方案,而不是git,据我所知,不可能进行本地转换。

What is the best way to accomplish this? 做到这一点的最佳方法是什么?

You can use a tool like git-tfs to convert a TFVC repository to a Git repository, but keep in mind that TFS branches are fundamentally very different than Git branches, and there is not a one-to-one mapping between the two things. 您可以使用git-tfs类的工具将TFVC存储库转换为Git存储库,但是请记住,TFS分支与Git分支本质上是非常不同的,并且两者之间没有一对一的映射。 Git-tfs does a pretty good job of managing simple branches, but it's not perfect. Git-tfs在管理简单分支方面做得非常好,但是并不完美。

Once you've turned your TFVC repository into a Git repository, you can just add your VSO repo as a new remote and force-push it into VSO. 将TFVC存储库转换为Git存储库后,您只需将VSO存储库添加为新的远程服务器,然后将其强制推入VSO。 Easy. 简单。

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

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