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 CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Introduction to Mercurial
- Difference Between Git and GitHub
- Difference Between GIT and SVN
- Jenkins and GIT Integration using SSH Key
- What is Git-Ignore and How to Use it?
- Common Git Problems and Their Fixes
- Pushing changes to a Git Repository
- What is a GIT Repository?
- Git Features
- Bare Repositories in Git
- Working with Git Repositories
- Merge Strategies in Git
- Getting changes from a Git Repository
- Git | Working with Stash
- Handling repositories with Git remote
- Using Git on CommandLine
- Working on BitBucket using Git
- Working on Git for GUI
- Using Patches in Git
- Rebasing of branches in Git
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.