I am new to git, so the question can be very simple, what is the difference between git reset --hard HEADand git reset --hard?
git reset --hard HEAD
git reset --hard
HEAD implied if you do not specify this argument.
HEAD
However, you can do this, for example. git reset --hard HEAD^to destroy the commit in HEAD, i.e. cancel it in such a way as to overwrite the story.
git reset --hard HEAD^