Learn how to create Git Repository in Eclipse
STEPS
----------
1) Right click on the Project
2) Go to Team and select Share Project
3) Select Git
4) Click next
5) Check "use or create repository in parent folder of project"
6) Select the project
7) Click "Create repository"
8) Click Finish
Your project now has git initialized. You can add, commit and do other things from Team menu.