This question seems to have being asked multiple times but non of the solutions I have seen are working for me.
I'm using git on windows command prompt but I also tried git bash they both produce nearly exactly the same results.
git reset --soft HEAD^
git reset --soft "HEAD^"
git reset --soft HEAD~1
git reset --soft "HEAD~1"
for each of these commands 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 <command> [<revision>...] -- [<file>...]'
except with "git reset --soft HEAD^" but it's a similar feedback
More? 1
fatal: ambiguous argument 'HEAD1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'