DEV Community

Discussion on: What is your favourite Git command?

Collapse
 
kkm000 profile image
Cy "kkm" K'Nelson

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 : )