Git "NO-HEAD" statement

Cemre Mengü picture Cemre Mengü · Feb 15, 2013 · Viewed 44.5k times · Source

I am using EGit plugin for Eclipse but whenever I add my project to Git, the plugin puts a "NO-HEAD" indication next to my project folder in Eclipse directory view. Am I doing something wrong ? What does this mean ?

Answer

VonC picture VonC · Feb 15, 2013

It can simply mean that, until you make your first add and first commit, you have no branch (not even a master one), hence no HEAD referencing any branch.

See more in "Why do I need to explicitly push a new branch?".