Re:A Saner Windows Command Line
by scrollaway on Wednesday March 30, 2016 @09:24AM
(#11389034)
It's just git reset --hard. HEAD is implied.
Edit: To be more specific:
git # the executable
reset # the operation
--hard # the type of reset being done (hard reset)
HEAD # where to reset *to*. Defaults to HEAD if not specified.
Re:A Saner Windows Command Line
by emodendroket on Wednesday March 30, 2016 @09:29AM
(#11389070)
You can just leave out HEAD since it is implied, but understanding a little bit about git, like what the head is supposed to be, would probably help you.
I need to reset my git repo to match origin, is it git reset hard --HEAD or git reset HEAD --hard?
I'm like 90% sure they switch it with every update.