从 TFS 迁移到 Git

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2874873/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 04:17:51  来源:igfitidea点击:

Migrating from TFS to Git

gittfs

提问by Henning

Is it possible to migrate from TFS 2008 to Git, and still preserve all the history, etc? 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.

是否可以从 TFS 2008 迁移到 Git,并仍然保留所有历史记录等?我已经看到一些参考文献谈到通过 SVN 来做这件事,但这似乎相当复杂,并且使我在工作中引入 Git 的任务变得复杂。

回答by DevelopingChris

There is a direct way its called git-tfsand 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 中,无法转换,花了几个小时才缩小范围。

回答by Prasad Telkikar

I wrote blog on migration of source code from TFS to Git, by maintaining your check-in history. Hope it will help:

我写了一篇关于将源代码从 TFS 迁移到 Git 的博客,通过维护您的签入历史记录。希望它会有所帮助:

Blog:TFS to GIT Migration

博客:TFS 到 GIT 的迁移