Mercurial <--> git cheat sheet?

14,599

Solution 1

Git hg rosetta stone is pretty extensive

Solution 2

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

Mercurial for Git users

Solution 3

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.

Solution 4

There's one at Hyperpolyglot.

Share:
14,599

Related videos on Youtube

David Wolever
Author by

David Wolever

Co-founder of https://akindi.com, python, http, vim, javascript, postgres, bash, motorcycles, toronto, startups Twitter: http://twitter.com/wolever Email: [email protected] Blog: http://blog.codekills.net GPG: B230230D GitHub: https://github.com/wolever StackOverflow: http://stackoverflow.com/users/71522/wolever Resume: http://careers.stackoverflow.com/wolever LinkedIn: http://www.linkedin.com/in/wolever Reddit: http://www.reddit.com/user/wolever Callsign: VA3WVR

Updated on September 13, 2020

Comments

  • David Wolever
    David Wolever almost 4 years

    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

  • Eliot
    Eliot about 13 years
    Page is currently broken, it says "no block given."
  • chryss
    chryss about 13 years
    Thanks. Clearly the author is reorganising his workspace on Github -- I've linked to a specific revision on the wiki.
  • Michael Haren
    Michael Haren about 10 years
  • Chris Marisic
    Chris Marisic over 9 years
    I created an updated version of the rosetta stone that includes all of the years worth of contributions that were not visible.