1. Mercurial :
Mercurial is a distributed revision control tool for software developer and it supports Microsoft window. Mercurial was developed by Matt Mackall on 19 April 2005. It is a cross plat from 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 support 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 :
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Introduction to Mercurial
- Difference between C++ and Go
- Difference between GCC and G++
- Difference between LAN, MAN and WAN
- Difference Between DAS and SAN
- Difference between MAN and WAN
- Difference Between GIT and SVN
- Difference between DFA and NFA
- Difference Between Blu-Ray and DVD
- Difference between Tor and VPN
- Difference between ANN, CNN and RNN
- Difference between DFD and ERD
- Difference between LAN and WAN
- Difference between IoT and M2M
- Difference Between SMO and SEO
- Difference between PNG and GIF
- Difference between SDN and NFV
- Difference between RPC and RMI
- Difference between DDR 5 and DDR 3
- Difference between H.323 and SIP
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.