What version of the eclipse and egit plugin are you using?
For me, on Kepler Service Release 2 and Egit 3.2.0, it works if I Team->Share Project->Git : Team->Share Project->Git and then select the Use or create repository in parent folder of project check box, and then select the project folder . instead of the parent ..
source share