Is "git reset --hard HEAD" the same as "git reset --hard HEAD"?

To undo the changes in the working tree and index, this answer ( https://stackoverflow.com/a/21275/ ... ) allows to run the following:

git reset --hard

Will this work the same as launch git reset --hard HEAD?

+4
source share
1 answer

Yes, HEADimplied, if not indicated, so this is the same.

Source [marker number # 2]

+6
source

Source: https://habr.com/ru/post/1683056/


All Articles