Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the difference between GIT and Mercurial/Tortoise?

I need to know what are the differences between GIT and Mercurial/Tortoise? i used Mercurial/Tortoise before but really i don't know the main difference between it and the other subversion controls. Thanks.

user-image
Question added by Aya Taleb , Senior Web Developer / Team Leader , Bayt.com / Talentera
Date Posted: 2014/02/08
Hadjazi Amri
by Hadjazi Amri , SENIOR LEAD JAVA/J2EE DEVELOPER , worldline

Git and Mercurial both are distributed version control system (DVCS).

The most distinguishing part of Git is the repository format, he keeps track of every change you make, storing them in the reflog (to inspect it 'git reflog'). After thirty days, Git will remove entries that not has reference from the reflog (garbage collected). What is important to note is that the identity of each object is a hash of the contents, which means everything is immutable. 

Git means never having to say "you should have".

 

 

The second thing Mercurial makes very difficult to retroactively tweak commits, with Git it's easy to go back in time to edit earlier commits if necessary with the simple command line (git rebase --interactive origin/master) it launches a test editor and lets you modify the history of Git to your heart's content, and with mercurial we must use an extension called Mercurial Queues.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.