git reset要求'更多'? [英] git reset asks 'more?'

查看:151
本文介绍了git reset要求'更多'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git windows命令行,1.8.0版本



到目前为止我有3个提交,当我键入

  git reset --soft HEAD ^ 

新行与

 更多? 

和闪烁的光标用于输入

然后,无论我输入什么,我总是得到


fatal:ambiguous参数'HEAD
':未知版本或路径不在工作中树。
使用' - '来分隔修订版本的路径,例如:
'git [...] - [...]


其他所有命令都可以在同一个文件夹中正常工作。

解决方案

c> git log HEAD ^ 可以工作。如果没有,它可能与您的本地化或终端有关。它似乎在过滤出 ^ 符号。作为一种解决方法,现在就使用 git reset --soft HEAD〜1


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.

解决方案

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.

这篇关于git reset要求'更多'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆