Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial <--> git cheat sheet? [closed]

Tags:

git

mercurial

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

like image 216
David Wolever Avatar asked Aug 06 '10 13:08

David Wolever


3 Answers

Git hg rosetta stone is pretty extensive

like image 178
chryss Avatar answered Oct 22 '22 18:10

chryss


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

Mercurial for Git users

like image 12
VonC Avatar answered Oct 22 '22 16:10

VonC


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.

like image 9
John Sloat Avatar answered Oct 22 '22 18:10

John Sloat