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’ :

I think I need to also commit the .project file ?
You need to commit your:
.settingsdir.classpathfile.projectfileThe 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.