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
相關文章
相關標籤/搜索