I'm facing a problem with Git support in PHPStorm - I don't know if I am doing something wrong or is it a bug, so after finding nothing simillar, I decided to start a discussion.
I have PhpStorim 3.0.3 running on Linux OS and when trying to update project from VCS (Git) I am getting the error as in the topic: "Can't update: no current branch: You are in 'detached HEAD' state, which means that you're not on any branch in Git repository. Checkout a branch to make update possible.".
I am no master in git, but I have read a little about detached HEAD. And still I can't fix it.
This can bo PhpStorm problem (or it's git module) because from within command line there is no problem with fetching and/or pulling. Moreover, the message provided by IDE says: "(...) you're not on any branch in Git repository. Checkout a branch to make update possible.", but it shows my local branch in every window/popup or status bar in the ID (like the one in lower right corner, just before the read-only toggle icon and inspection profile button).
So what is the problem?
Right now I have to make updates manually from command line. Pushing commits to remote branches works properly.