Difference between MERCURIAL and GIT
1. Mercurial :
Mercurial is a distributed revision control tool for software developers and it supports Microsoft window. Mercurial was developed by Matt Mackall on 19 April 2005. It is a cross-platform distributed revision tools and mainly written on python, C, Rust that primarily a command-line program. All the mercurial operation invoked b argument drive program Hg. Mercurial supports various operating systems like MS Window, UNIX-LIX systems, such as free BSD, MAC OSX, and LINUX.
2. Git :
Git is a distributed system which tracks the change in source code. It is developed by Linus Torvalds on 7 April 2005. It supports various operating system like Window Linux Macos Solaris. It is mainly written on C, Perl, Python, Language. Git is a free open source system in which there is no centralized connectivity is needed. It is powerful and cheap branching with easy to merge. In which each developer has his repository and has a local copy in which they can change history. It support for non-linear development branches and application with a large number of codes files.
Here are some .git directory structure
- HEAD/: Current branch.
- Config/: For configuration.
- Description/: Description of your project.
- Logs/: keep record.
- Refs/: Hold local branch.
Difference between Mercurial and 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.
Easy to extend.
Hosting tools and services.
|Features of Git :|