how to commit from eclipse correctly?

Viewed 38

Hello I have the following problem I want to commit everything and the project folder in git from eclipse

i do the following

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

what I want to obtain is that when I commit it in my repository the project folder is made and all the code is inside for example repository/myProject/foldercodes

what i get is the following repository/foldercodes

1 Answers

What I get is the following repository/foldercodes

That is expected: when you are sharing a project with Eclipse, Git will look of your project folder content (and initialize a .git subfolder in it).

The remote repository can be named after your project name 'myProject', that way, when you clone it back later on, your foldercode will be inside a myProject folder created by Git clone and whose name is derived by default from the Git repository name.

Related