HEAD~1, you missed the tilde. Also, --soft and 1 are the defaults, and @ can be used as a shorthand for HEAD when it's part of a relative graph distance expression, so it's simply
git reset @~
undo is still shorter : )
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
HEAD~1
, you missed the tilde. Also,--soft
and1
are the defaults, and@
can be used as a shorthand forHEAD
when it's part of a relative graph distance expression, so it's simplyundo
is still shorter : )