Search code examples
eclipsegitgithubegit

What files should be committed to github for an eclipse project


What files should I commit to github so that its a valid Eclipse project ?

I am just committing my source files and packages but when I try to re-create the project I receive this error 'no projects found' :

enter image description here

I think I need to also commit the .project file ?


Solution

  • You need to commit your:

    • .settings dir
    • .classpath file
    • .project file

    The better idea will be to use maven for your project so that you will have a common configuration for all the IDEs (eclipse, netbeans, ideaj ...) and no need to push your eclipse specific configuration.