Enabling EGit Project Menus in Eclipse

EGit is a great Eclipse add-on that integrates Git processes in the IDE. The project menu looks like this.

Even though EGit is great, if you’re like me you like to do some of your Git work at the command line. And if you do a Git init or clone a project at the command line, EGit isn’t going to know about your Git Repository and will deny you the sweet Project Menu. Ouch!

The fix is as easy as adding a Repository for the project in Eclipse. Our newly added project repository is Bootstrap-web in red at the top of the list.

To create the repository we go to the Eclipse Git Repository View and add the repository. Our project already has a .git directory so we point to the project root and Eclipse does the rest.

Ahhhh, yes.