📅  最后修改于: 2020-12-13 13:43:33             🧑  作者: Mango
Mercurial和Git都是两个非常相似且最受欢迎的分布式版本控制系统。它们的优缺点使它们成为不同用例的理想选择。两种工具都使用有向无环图来存储历史记录。
Mercurial是一种分布式源代码管理管理工具。它是免费和开源的。它可以处理任何规模的项目,并提供简单直观的界面。
如今,Git已拥有超过3100万用户,并由Microsoft拥有。自上个十年以来,Git已成为大多数开发项目的标准。
Mercurial仍然具有大型开发组织的少数工具。 Facebook,Mozilla和World Wide Web Consortium等一些软件开发巨头正在使用它。但是它仅占VCS市场份额的2%。相比较而言,Git覆盖了80%以上的市场份额。
两种版本控制系统(即Mercurial和Git)都是分布式版本控制系统(DVCS)。
为了更好地理解Git和Mercurial之间的异同,让我们看一下以下几点。
Git | Mercurial |
---|---|
Git is a little bit of complex than Mercurial. | Mercurial is simpler than Git. |
No VCS are entirely secured, but Git offers many functions to enhance safety. | Mercurial may be safer for fresher. It has more security features. |
Git has a powerful and effective branching model. Branching in Git is better than Branching in Mercurial. | Branching in Mercurial doesn’t refer the same meaning as in Git. |
Git supports the staging area, which is known as the index file. | There is no index or staging area before the commit in Mercurial. |
The most significant benefit with Git is that it has become an industry-standard, which means more developers are familiar with it. | Mercurial’s significant benefit is that it’s easy to learn and use, which is useful for less-technical content contributors. |
Git needs periodic maintenance for repositories. | It does not require any maintenance. |
It holds Linux heritage. | It is python based. |
Git is slightly slower than Mercurial. | It is faster than Git. |
Git supports the unlimited number of parents. | Mercurial allows only two parents. |