9

In order to revert changes in a working tree and index, this answer (https://stackoverflow.com/a/5812972/8278160) suggests that one run the following:

git reset --hard

Would running this be the same as running git reset --hard HEAD?

Gokhan
  • 307
  • 3
  • 9

1 Answers1

9

Yes, HEAD is implied if not specified, so it's the same thing.

Source [bullet item #2]

ddavison
  • 28,221
  • 15
  • 85
  • 110
jhpratt
  • 6,841
  • 16
  • 40
  • 50