Git中的HEAD ^和HEAD〜有什么区别? - What's the difference between HEAD^ and HEAD~ in Git?

问题:

When I specify an ancestor commit object in Git, I'm confused between HEAD^ and HEAD~ . 当我在Git中指定祖先提交对象时,我在HEAD^HEAD~之间感到困惑。 spa

Both have a "numbered" version like HEAD^3 and HEAD~2 . 二者都有一个“编号”版本,例如HEAD^3HEAD~2 .net

They seem very similar or the same to me, but are there any differences between the tilde and the caret? 在我看来,它们看起来很是类似或相同,可是波浪号和插入符号之间是否有任何区别? code


解决方案:

参考一: https://stackoom.com/question/9JxC/Git中的HEAD-和HEAD-有什么区别
参考二: https://oldbug.net/q/9JxC/What-s-the-difference-between-HEAD-and-HEAD-in-Git
相关文章
相关标签/搜索