The commands you mentioned are working well on macOS. But On Windows, the caret symbol ^
is used as an escape character, which is why you encounter the "More?
" prompt.If you are using Windows, the solution is to use the double caret symbol ^^
instead of ^
.For Example:
git reset --soft HEAD^^ git reset HEAD^^ git reset --hard HEAD^^