The other answers don’t contemplate that if you don’t use Git, then you can entirely ignore this warning, along with the “EGit could not detect” one.
But I know… obsessive minds can’t just ignore… they NEED to fix it anyway, right?
Then proceed:
- Go to “Window –> Preferences” menu
- Expand: “Version Control (Team) –> Git –> Confirmations and warnings”
- Uncheck the “Home directory” and “Git prefix” boxes
- Ok
- In the Workspace log, delete the old warnings (red cross icon)
- Restart Eclipse
- Feel the peace spreading through your mind… 🙂