News for hackers. Stuff that matters.
Re:A Saner Windows Command Line by Klathmon on Wednesday March 30, 2016 @09:13AM (#11388966)
Holy shit git!

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.

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.
Re:A Saner Windows Command Line by lottin on Wednesday March 30, 2016 @09:48AM (#11389204)
For rare commands that are repeated every so often history search comes in handy.