norbertas.gaulia norbertas.gaulia - 1 month ago 18
Git Question

git reset asks 'more?'

Git windows command line, version 1.8.0

I have 3 commits so far and when I type

git reset --soft HEAD^


new line comes up with

More?


and flashing cursor for input

Then, whatever I type, I always get


fatal: ambiguous argument 'HEAD
': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]


All other commands works fine in the same folder.

Answer

see if git log HEAD^ works. If it doesn't, it may be something with your localization or terminal. It seems to be filtering out the ^ symbol. As a workaround, use git reset --soft HEAD~1 for now.

Comments