git reset asks 'more?'

后端 未结 3 1596
忘了有多久
忘了有多久 2020-12-04 20:47

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

3条回答
  •  渐次进展
    2020-12-04 21:20

    The ^ is an escape character in the Windows Command Line. Use ^^ instead of ^.

    git reset --soft HEAD^^
    

    See Rob Van Der Woude's Scripting Pages for details on Escape Characters.

提交回复
热议问题