简而言之,git和mercurial在颠覆方面有什么优势? [英] In short, what are the advantages of git and mercurial over subversion?

查看:90
本文介绍了简而言之,git和mercurial在颠覆方面有什么优势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我Git和Mercurial在Subversion上的宣传是什么吗?

解决方案

就Git而言,我认为有很多,其中最大的(在我看来)是Git的高级分支和合并支持。 Git使它真的非常容易分支,它在合并变化方面的能力远远优于SVN。像 gitk 这样的工具也使得真正很容易可视化Git仓库中分支之间的关系。



有很多其他的好处。我认为Git拥有更好的工具和更好的工具链,而且它不需要中央repo 检出repo,这一点在您自己开发小型项目时很好。不过,我认为合并和分支是最大的好处。



(很多情况也适用于Mercurial,尽管我从不喜欢Mercurial强调本地克隆的分支;我更喜欢Git将所有分支保存在同一回购中的方法。)


Can someone tell me what the hype is over Git and Mercurial over Subversion?

解决方案

As far as Git goes, I think there are quite a few, the biggest of which (in my opinion) is Git's advanced branching and merging support. Git makes it really, really easy to branch, and its ability to merge in changes is much, much better than that of SVN's. Tools like gitk also make it really, really easy to visualize the relationships between branches in a Git repository.

There are numerous other benefits. I think Git has better tools and a better toolchain, and the fact that it doesn't require a central repo and a "checked out" repo is nice when you're working on small projects by yourself. I think merging and branching is the biggest benefit, though.

(A lot of that goes for Mercurial, as well, although I never liked Mercurial's emphasis on local clones for "branching"; I much prefer Git's method of keeping all the branches in the same repo.)

这篇关于简而言之,git和mercurial在颠覆方面有什么优势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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