简体   繁体   English

从 TFS 迁移到 Git

[英]Migrating from TFS to Git

Is it possible to migrate from TFS 2008 to Git, and still preserve all the history, etc?是否可以从 TFS 2008 迁移到 Git,并仍然保留所有历史记录等? I've seen some references that talk about doing it through SVN, but that seems rather complicated, and complicates my mission to introduce Git at my job.我已经看到一些参考文献谈到通过 SVN 来做这件事,但这似乎相当复杂,并且使我在工作中引入 Git 的任务变得复杂。

There is a direct way its called git-tfs and it's up on github.有一种叫做git-tfs的直接方式,它在 github 上。

You just do a你只要做一个

  git tfs clone <tfs server> <tfs project>

I recommend getting the source and adding it to your path separately so that you can debug it for any strangeness, but the code is pretty easy to step through.我建议获取源代码并将其单独添加到您的路径中,以便您可以调试它是否有任何奇怪之处,但代码很容易单步执行。

I had a file that was an msi that was 500 MB that the client stored in tfs, that wouldn't convert, took a few hours to narrow it down.我有一个 500 MB 的 msi 文件,客户端存储在 tfs 中,无法转换,花了几个小时来缩小范围。

I wrote blog on migration of source code from TFS to Git, by maintaining your check-in history.我写了一篇关于将源代码从 TFS 迁移到 Git 的博客,通过维护您的签入历史记录。 Hope it will help:希望它会有所帮助:

Blog: TFS to GIT Migration博客: TFS 到 GIT 的迁移

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

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