如何将TFS存储库同步到github? [英] How do I sync a TFS repo to github?

查看:155
本文介绍了如何将TFS存储库同步到github?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视觉工作室在线回购(TFS),我用于我的CQRS on Azure的东西,但人们正在寻找一个GitHub版本,所以他们可以贡献 - 是否可以设置一些东西,以保持他们两个同步?



我想在TFS上保留快速响铃,但是在成功构建的过程中推送到GitHub。



我尝试了什么:



看谷歌 - 不明白任何潜在的建议。也许这是不可能或不合理的?

I have a visual studio online repo (TFS) that I use for my "CQRS on Azure" stuff but folks are looking for a GitHub version so they can contribute - is it possible to set something up to keep them both in sync?

I want to keep the "fast ring" on TFS but push to GitHub as a build step on a successful build.

What I have tried:

Looked on google - didn't understand any of the potential suggestions. Maybe this is not possible or not sensible?

推荐答案

这两个版本控制系统中的一个与另一个没有任何关系。



因此,要同步它们,请从其中一个存储库更新代码并将更新的代码提交给另一个存储库。这就是全部。



在某种程度上,这是明智的,但不能被视为任何合理开发工作流程的一部分。它甚至可以被视为破坏修订控制系统的目的。实际上,它可能只是一个工作流程噪音,根本没有创造任何价值,只会引入人为错误的其他来源。



摆脱它。选择其中一个系统并使用它进行开发。如果你问我这个选择,我总是建议使用开源解决方案。如果您已经使用github,切换到git将为您带来双重好处。首先,您将采用纯粹的开源系统,非常受欢迎,经常进行同行评审和改进,因此非常可靠;同时,你将拥有相同的内部开发系统和github。你不需要安装太多;该系统非常轻巧。或者,作为一个选项,如果您发现对此资源的依赖性是可接受的,则将所有开发完全基于github本身。



如果您想要增加可靠性,请添加备份,而不是任何项目代码,但代码数据库本身。



-SA
One of these two Revision Control systems has nothing to do with another one.

Therefore, to sync them, update code from one of the repositories and commit updated code to another one. That's all.

In a way, this is sensible but cannot be considered as a part of any reasonable development workflow. It can even be considered as defeat of the purpose of Revision Control systems. Practically, it could be just a workflow noise which creates no value at all, only introduces additional source of human-generated errors.

Get rid of it. Pick one of the systems and conduct your development using it. If you asked me on the choice, I would always advise to use open-source solution. If you already using github, switching to git would give you double benefits. First, you would resort to purely open-source system, very popular, constantly peer-reviewed and improved, and hence very reliable; at the same time, you will have identical system for internal development and github. You won't need to install much; the system is extremely lightweight. Or, as an option, base all your development exclusively on github itself, if you find dependency on this resource acceptable.

If you want added reliability, add backup, not of any project code, but of the code database itself.

—SA


有一个看看 git-tfs [ ^这似乎是一种合理的方法,可以在不同的平台上同步保存两个回购。设置和使用并不困难。
Have a look at git-tfs[^] which seems like a reasonable way to keep two repo's on the different plaforms in sync. It's not that hard to setup and use.


这篇关于如何将TFS存储库同步到github?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆