I'm using git at the command line with PowerShell, and I'm trying to use something like
git difftool HEAD^
Powershell seems to treat this as if I typed
git difftool HEAD
so the caret symbol is gone. If I use multiple copies of the caret, I get a weird error:
git difftool HEAD^^
fatal: ambiguous argument 'HEAD@set': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Interestingly, using four carets in a row seems to escape down to one, so git difftool HEAD^^^^ works as I expect git difftool HEAD^ to work.
I've tried escaping the caret with single quotes, double quotes, grave accents, nothing seems to help.
Is this a feature of PowerShell, or is my setup wrong somewhere?
git log -n 1 HEADandgit log -n 1 HEAD^?git log -n 1 HEAD^^^^