“You are in ‘detached HEAD’ state” is not an error message and is nothing to be worried about.
This state means you are no longer on a branch, and it happens when an arbitrary commit is checked out instead of a branch.
If this state was unintentional and you want to “fix” the ‘detached HEAD’, you can go back to the branch you are expected to be on by runing the git checkout command. (more…)