在hg中,我可以使用hg heads
来查看当前所有的头像。我仍然无法在git中找到等价物。 git-hg rosetta stone没有给出答案。什么是hg heads/hg父母的git等价物?
至于hg parents
这汞柱只是讲述了一个节点的直系祖先罗塞塔石碑简单地读取非常无益的:
git log # you can read all the information you need from there (as long as you already know the answer to the question you're asking)
我相信' git分支'相当于'hg头' – JaredPar 2012-02-27 22:38:24
@JaredPar Mercurial的头部是一个没有孩子的提交。这与分支不同。有些分支可能有孩子。有些没有孩子的承诺可能不是分支机构的负责人。 – 2012-02-27 22:49:50
看起来像一个X-Y问题。你想在Git中做什么?可能会有一个(更好的)等同于你想要做的,而不是与你在Hg中所做的相同。 – manojlds 2012-02-27 23:02:19