Is there any situation in which HEAD~
and HEAD^
will not be the same commit? In a more general sense, is there any series of merges or other operations that will result in x~
not being the same thing as x^
?
No, HEAD~ and HEAD^ are synonyms.
HEAD~ means HEAD~1 by definition.
HEAD~1 means HEAD^ by definition.
See git rev-parse --help
for more information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With