What is the difference between "reset hard head" and "reset hard"?

I am new to git, so the question can be very simple, what is the difference between git reset --hard HEADand git reset --hard?

+3
source share
1 answer

HEAD implied if you do not specify this argument.

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.

+5
source

All Articles