我正在使用 Git。我对我创建的分支做了一些更改,然后我提交了一些更改。但是现在,当我尝试提交代码时,我收到以下消息:
Warning: not all local changes may be shown due to an error: The string 'HEAD' does not represent a revision number.
此外,当我查看 IntelliJ IDEA 12.1.6 中的本地更改列表时 以下消息出现在列表下方:
Error updating changes: The string 'HEAD' does not represent a revision number
我很乐意在这方面得到一些帮助。我用谷歌搜索了这个问题,但没有得到任何指向正确方向的信息。
最佳答案
我遇到了同样的问题。对我来说,只需退出 IntelliJ 并重新打开它即可解决问题。
关于git - 字符串 'Head' 不代表修订号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19407664/