S
S
Svyatoslav Khusamov2017-02-04 20:47:03
git
Svyatoslav Khusamov, 2017-02-04 20:47:03

What does the cap c:\^ command mean in the Windows command prompt?

I'm trying to enter the command:
C:\>git reset --soft HEAD^
Continue? Yes
fatal: ambiguous argument 'HEADYes': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
And I get obvious gibberish.
How do I put in a git reset --soft HEAD^ command?
I took the command from here: evtuhovich.ru/blog/2009/04/03/git-reset

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zzamzam, 2017-02-04
@khusamov

The caret (^) on the Windows command line is used:
1. As a line continuation character

dir ^
/ad ^
c:\temp

equivalent
Therefore, 'HEADYes' is obtained. 2.
As an escape character.
you need to write two carriages
git reset --soft HEAD^^

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question