Mercurial <--> git cheat sheet?
Solution 1
Git hg rosetta stone is pretty extensive
Solution 2
You also have quite a complete reference in the Mercurial Wiki itself:
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.
Related videos on Youtube
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, 2020Comments
-
David Wolever almost 4 years
Is there a cheat sheet or wiki page out there which relates
hg
commands togit
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
andgit pull
).1 case in point:
git push origin :refs/heads/foo
-
Ben Moss almost 14 yearspossible duplicate of Git equivalents of most common Mercurial commands?
-
-
Eliot about 13 yearsPage is currently broken, it says "no block given."
-
chryss about 13 yearsThanks. Clearly the author is reorganising his workspace on Github -- I've linked to a specific revision on the wiki.
-
Michael Haren about 10 yearsLink to relevant section: github.com/sympy/sympy/wiki/Git-hg-rosetta-stone#rosetta-stone
-
Chris Marisic over 9 yearsI created an updated version of the rosetta stone that includes all of the years worth of contributions that were not visible.