Mercurial <--> git 备忘单?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3424419/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Mercurial <--> git cheat sheet?
提问by David Wolever
Is there a cheat sheet or wiki page out there which relates hg
commands to git
commands, and vise-versa?
是否有速查表或维基页面将hg
命令与git
命令相关联,反之亦然?
I'd like to know for two reasons: first, I'd like to be able to translate git
-speak1into Mercurial, and second I'd like to be aware of the subtle differences between similar-sounding commands (eg, hg pull
and git pull
).
我想知道有两个原因:首先,我希望能够将git
-speak 1翻译成 Mercurial,其次我想知道发音相似的命令(例如,hg pull
和git pull
)之间的细微差别.
1case in point: git push origin :refs/heads/foo
1个案例:git push origin :refs/heads/foo
采纳答案by chryss
Git hg rosetta stoneis pretty extensive
回答by VonC
You also have quite a complete reference in the Mercurial Wiki itself:
您在 Mercurial Wiki 本身中也有相当完整的参考:
回答by John Sloat
Disclaimer: I work for Atlassian.
免责声明:我为 Atlassian 工作。
We have a less comprehensive cheat sheet comparing equivalent/similar SVN, Git & Hg commands in our blog post comparing Git to Mercurial.
在我们比较Git 与 Mercurial 的博客文章中,我们有一份不太全面的备忘单,比较了等效/相似的 SVN、Git 和 Hg 命令。
回答by echristopherson
There's one at Hyperpolyglot.
Hyperpolyglot有一个。