Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The String 'Head' does not represent a revision number

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.

like image 293
fang_dejavu Avatar asked Oct 16 '13 15:10

fang_dejavu


1 Answers

I had this same issue. For me simply quitting IntelliJ and re-opening it solved the problem.

like image 117
Kirby Avatar answered Oct 02 '22 21:10

Kirby