Differences between revisions 1 and 103 (spanning 102 versions)
Revision 1 as of 2009-01-08 18:09:39
Size: 1621
Editor: IsaacJurado
Comment:
Revision 103 as of 2013-08-31 11:05:44
Size: 324
Editor: AngelikaG
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Mercurial for Git users =

[http://git-scm.com Git] is a very popular DistributedSCM that works very
similarly to Mercurial. However, there are some conceptual differences that may
puzzle the casual Git user when using Mercurial.

In general, Git's feature set is the largest among all [:DistributedSCM:DVCS]
software, but Mercurial can equally cover a great extent of it. This document
tries to show how.


== History model ==

Mercurial's view of history is, just like git's, a [:UnderstandingMercurial:DAG]
or Directed Acyclic Graph of commits. The difference is that, in Mercurial,
commits are called ''changesets'' and there is no notion of trees and blobs
because Hg is a bit more bound to the file system than git is. Aside from that,
the graphical representation of history is the same in both
cases.

They both use the SHA1 result value to identify commits/changesets.
Additionally, Mercurial also provides a '''local''' ascending number for each
revision instead of providing the reverse count notation provided by git (for
example, HEAD~4).


== Branch model ==

Also like in git, Mercurial supports branching in different ways. First and
foremost, each clone of a repository represents a branch; eventually identical
to other clones of the same repositories. This way of branching sometimes
referred as ''heavy branches'' and it works the same for both systems, although
the way is handled differs slightly due to git's notion remote branches; more on
this later.

Then git has its famous ''lightweight branches''.


'''''UNFINISHED, PLEASE DO NOT LINK YET'''''
Rey is what folks call him yet he doesn't like whenever folks use his full name. Virgin Islands has always been his house. To fix computers is something he would never give up. Accounting has been his industry for some time. You may constantly discover his website here: http://ankuzic.com/members/zugvirgie/activity/3081/

Rey is what folks call him yet he doesn't like whenever folks use his full name. Virgin Islands has always been his house. To fix computers is something he would never give up. Accounting has been his industry for some time. You may constantly discover his website here: http://ankuzic.com/members/zugvirgie/activity/3081/

GitConcepts (last edited 2020-12-05 18:06:40 by KevinLocke)