字符串“头”不代表修订版号 [英] The String 'Head' does not represent a revision number
问题描述
我正在使用Git。我对我创建的分支做了一些更改,然后我进行了一些更改。但现在,当我尝试提交代码时,我收到以下消息:
警告:并非所有本地更改都可能会显示,因为错误:
字符串'HEAD'不代表修订版本号。
另外,当我查看本地更改在IntelliJ IDEA 12.1.6
列表中列出以下消息:
$ b
更新更改时出错:字符串'HEAD'并不代表
修订版号码
我很乐意在此获得一些帮助。我搜索了这个问题,但没有得到任何东西指向正确的方向。 我也遇到了这个问题,我解决了它来自git bash git reset
。
I'm using Git. I made some changes to a branch that I created and then I committed some changes. But now, when I try to commit code, I get the following message:
Warning: not all local changes may be shown due to an error: The string 'HEAD' does not represent a revision number.
Also, when I look into the local changes list in IntelliJ IDEA 12.1.6 the following message appears below the list:
Error updating changes: The string 'HEAD' does not represent a revision number
I would love to get some help on this. I googled the problem but didn't get anything pointing me on the right direction.
I also got this problem and I resolved it by git reset
from git bash.
这篇关于字符串“头”不代表修订版号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!