在考虑使用 git 与 svn 进行工作项目时,Mercurial 是两全其美吗?

发布于 2024-11-10 15:49:50 字数 398 浏览 4 评论 0原文

最近,我一直在为我的工作项目寻找最佳的源代码控制技术。我成为 subversion 用户已经有一段时间了,但对 git 的了解越来越多。所以我检查了它,我非常喜欢它允许您轻松地将项目置于源代码控制之下,甚至在您无法访问服务器时离线。 然而,在多个程序员环境中(例如在工作中),中央服务器的想法仍然有其好处。 就在那时我遇到了 Mercurial,在我看来,这似乎是两全其美,因为你可以将你的项目置于离线源代码控制之下,你可以将推送推送给其他人(如果他们建立了网络服务器),但你也可以使用一个中央服务器来推送和拉取.. 再加上像 bitbucket.com 这样的东西让您有机会在线启动私人免费存储库。

那么我的想法是否正确,或者这些源代码控制系统是否存在一些重要的微妙之处在我无法掌握的工作环境中?

Lately I've been searching for the best source control technologies for my work projects. I've been a subversion user for a while, but heard more and more about git. So I checked it out, and I very much liked the fact that it allows you to easily put your projects under source control, even offline, when you don't have access to a server.
However in multiple programmer environments (for instance at work) the idea of a central server still has its benefits.
That's when I came across Mercurial, this seems to me to be the best of both worlds, since you can just put your project under source control offline, you can pull push to other people if they put up a webserver, but you can also use a central server to push to and pull from..
Combine that with the fact that something like bitbucket.com gives you the chance to start a private free repository online..

So am I right in my thinking, or are there some important subtleties with these source control systems in a work environment that I fail to grasp?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

半夏半凉 2024-11-17 15:49:50

你错过了一些东西 - git 还允许你拥有一个中央服务器。 github 提供了与 bitbucket 相同的设施。话虽如此,我认为对于刚开始进行版本控制的人来说,Mercurial 是比 git 更好的选择,因为它更容易使用,不太复杂,而且(至少对于新用户来说)它的文档也不那么令人生畏。

另外,你没有说明你使用什么平台,但目前 Windows 上的 Mercurial 用户界面比 git 有明显的优势。

You are missing something - git also allows you to have a central server. And github provides the same sort of facilities as bitbucket. Having said that, I think that that Mercurial is a better choice than git for someone starting out in version control, as it is somewhat easier to use, less complex and (for new users at least) its documentation is less intimidating.

Also, you don't say what platform(s) you use, but currently the Mercurial user interface on Windows has a distinct edge over git.

一曲爱恨情仇 2024-11-17 15:49:50

正如 Neil 已经提到的,没有什么可以阻止你拥有一个 git 中央服务器。

根据我的经验,mercurial 比 git 更容易掌握,而且入门也很容易。有些人认为 git 更强大。这是否属实,我留给你自己去发现。

您应该考虑的是,git 或 Mercurial 都没有与 SVN 相同类型的用户身份验证。然而,有多种方法可以解决该问题(使用 SSH、HTTP...)

As Neil already mentioned there is nothing stopping you in having a central server for git.

In my experience mercurial is easier to grasp than git, and getting starting is very easy. Some argue that git is more powerful. Whether that is actually true I leave for you to discover yourself.

What you should take into consideration is that neither git or mercurial have the same type of user authentication as SVN. There are however multiple ways to solve that problem (using SSH, HTTP, ...)

清风疏影 2024-11-17 15:49:50

回答你的问题,我相信是这样的。

我使用 Mercurial 来访问所有 Mercurial、git 和 subversion 存储库。我使用名为 hg-git http://hg-git.github.com/ 的 Mercurial 扩展来使用 git 存储库;主要在github上。 Mercurial 有几种使用 subverion 的方法,但最终我已经转换了这些 svn 存储库,不需要再做任何事情。

就善变本身来说就很伟大,确实如此。但最主要的是它很棒,因为 dvcs 很棒。如果可以的话,使用它们(git,hg)一段时间并尝试最好地理解它们。选择 git 或 hg 不会出错。

To answer your question, I believe so.

I use mercurial for all my mercurial, git and subversion repository access. I use a mercurial extension called hg-git http://hg-git.github.com/ to work with git repositories; mainly on github. Mercurial has a few ways to work with subverion, but ultimately I have converted those svn repos and not needed to do anything more.

As far mercurial alone being great, it is. But mostly it's great because dvcs is great. If you can, use them both (git, hg) for a while and try to best understand them. You can't go wrong with choosing git or hg.

迷路的信 2024-11-17 15:49:50

好吧,我想说你应该检查一下这个。它被一些非常大的项目使用,如 OpenJDK、Nuxeo、NetBeans、OpenOffice、OpenSolaris、jMaps、RabbitMQ 等。
过去几年我一直在使用 Bitbucket/Mercurail,我对此非常满意。
萨潘

Well, I would say you should check this out. It is getting used by some really big projects like OpenJDK, Nuxeo, NetBeans, OpenOffice,OpenSolaris, jMaps, RabbitMQ etc.
I have been using Bitbucket/Mercurail from last few years and I am extremely happy with it.
Sapan

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文