50

Is there a cheat sheet or wiki page out there which relates hg commands to git commands, and vise-versa?

I'd like to know for two reasons: first, I'd like to be able to translate git-speak1 into Mercurial, and second I'd like to be aware of the subtle differences between similar-sounding commands (eg, hg pull and git pull).

1 case in point: git push origin :refs/heads/foo

Robert Siemer
  • 32,405
  • 11
  • 84
  • 94
David Wolever
  • 148,955
  • 89
  • 346
  • 502
  • possible duplicate of [Git equivalents of most common Mercurial commands?](http://stackoverflow.com/questions/1450348/git-equivalents-of-most-common-mercurial-commands) – richq Aug 06 '10 at 17:22

4 Answers4

39

Git hg rosetta stone is pretty extensive

Braham Snyder
  • 511
  • 1
  • 6
  • 14
chryss
  • 7,459
  • 37
  • 46
13

You also have quite a complete reference in the Mercurial Wiki itself:

Mercurial for Git users

Luke Schlather
  • 367
  • 2
  • 13
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
10

Disclaimer: I work for Atlassian.

We have a less comprehensive cheat sheet comparing equivalent/similar SVN, Git & Hg commands in our blog post comparing Git to Mercurial.

John Sloat
  • 101
  • 1
  • 3
7

There's one at Hyperpolyglot.

echristopherson
  • 6,974
  • 2
  • 21
  • 31