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,--softand1are the defaults, and@can be used as a shorthand forHEADwhen it's part of a relative graph distance expression, so it's simplyundois still shorter : )