If you have a project on your Eclipse, on your local computer that is not version controlled and you realize that you should do it. Well, this is quick and easy!
- Step 1: Open Your Project in Eclipse
- Step 2: Right click on your project folder and select: Show in -> Terminal

- Step 3: Now in the terminal run the command: git init
Example:$ git init Initialized empty Git repository in /Users/code2care/eclipse-ws-bit-bucket/myapp/.git/ - Step 4: Now you should see that your project has the .git repository (Close your project and re-open if you do not see the repo)
$ ls -la total 16 drwxr-xr-x@ 8 code2care staff 256 Jan 11 15:14 . drwxr-xr-x@ 4 code2care staff 128 Jan 11 15:08 .. -rw-r--r--@ 1 code2care staff 386 Jan 11 15:08 .classpath drwxr-xr-x@ 9 code2care staff 288 Jan 11 15:14 .git -rw-r--r--@ 1 code2care staff 364 Jan 11 15:08 .project drwxr-xr-x@ 4 code2care staff 128 Jan 11 15:08 .settings drwxr-xr-x@ 3 code2care staff 96 Jan 11 15:08 bin drwxr-xr-x@ 3 code2care staff 96 Jan 11 15:08 src
Now you can commit your project to your local repository using Right Click on the project: Team -> Commit...

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!