什么是hg head/hg父母的git等价物?

Geo*_*uer 11 git

在hg我可以hg heads用来查看所有当前的头.我仍然无法找到git中的等价物.该混帐-HG罗塞塔石碑并没有给出答案.

至于hg parentshg 中的哪一个只是告诉一个节点的直接祖先,rosetta stone只是读取非常无益的:

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) 
Run Code Online (Sandbox Code Playgroud)

man*_*lds 10

git rev-list HEAD,git rev-list <sha1>并且git rev-list HEAD -1 -- file是不同形式的等价物hg parents

至于你的分离的HEAD问题,do git checkout <sha1>是用于提交检查而不是用于一般工作流程.如果您想要提交分支,则必须执行git branch <name> <sha1>git checkout -b <name> <sha1>处理它.

由于上述原因,我觉得把hg heads所有相当于git的内容称为没有孩子的所有提交都是不理想的,但是等价的结果是git branch