📜  MERCURIAL和GIT之间的区别

📅  最后修改于: 2021-08-25 10:33:09             🧑  作者: Mango

1.水银:
Mercurial是面向软件开发人员的分布式版本控制工具,它支持Microsoft窗口。 Mercurial由Matt Mackall在2005年4月19日开发。它是分布式修订工具的跨平台,主要使用Python,C和Rust编写,主要是一个命令行程序。所有的变数操作都调用了参数驱动程序Hg。 Mercurial支持各种操作系统,例如MS Window,UNIX-LIX系统(例如免费的BSD,MAC OSX和LINUX)。

2. Git:
Git是一个分布式系统,可跟踪源代码的更改。它由Linus Torvalds在2005年4月7日开发。它支持多种操作系统,例如Window Linux Macos Solaris。它主要用C,Perl, Python和Language编写。 Git是一个免费的开源系统,其中不需要集中式连接。它是功能强大且便宜的分支,易于合并。每个开发人员都在其中拥有自己的存储库,并拥有一个本地副本,他们可以在其中更改历史记录。它支持非线性开发分支和具有大量代码文件的应用程序。

这是一些.git目录结构

  • HEAD /:当前分支。
  • Config /:用于配置。
  • 说明/:您的项目的说明。
  • 日志/:保留记录。
  • Refs /:持有本地分支。

Mercurial和Git之间的区别:

MERCURIAL GIT
Mercurial is a distributed revision control tool for software developer and it support Microsoft window. Git is distributed system which track the change in source code in which each developer has his repository.
Mercurial was developed by Matt Mackall on 19 April 2005. It is developed by Linus Torvalds on 7 April 2005.
Mercurial written on python, C, Rust language. Git written on C, Perl, Python, Language.
Mercurial support MS Window, UNIX-LIX system, such as free BSD, MAC OSX, and LINUX operating system. Git support Window, Linux Macos, Solaris operating system.
Mercurial support HTTP, Custom over SSH, Email Bundles (with standard plugin) Network Protocols. Git support Custom over SSH, Rsync, HTTP Network protocols.
It does not allow to change the version history in which its by default. Git allow to developer to change the version history.
Mercurial provides branching but it not better as Git. Git provide strong branching than Mercurial.
Mercurial is simple as compared to Git. Git is more complex due to commands.
Mercurial does not support Staging. Git support Staging.
Features of Mercurial :
A sane command line interface.
Safer history with mercurial.
GUI support.
Windows support.
Backwards compatibility.
Easy to extend.
Commercial support.
Hosting tools and services.
Features of Git :
Distributed System.
Branching.
Compatibility.
Non-linear Development.
Lightweight.
Open source.