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

  • Can't connect to Github private repo with eclipse
  • JGIT Pull NoHeadException
  • “Could not get advertised Ref for branch…” error when pulling in a git repository in Eclipse
  • How to set-up git with utf8 filenames in EGit
  • Git uncomitted file confirmation when switching branches
  • Failed to initialize Git team provider
  • enter image description here

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

  • How to capture the output of a command without it displaying in stdout
  • How to change credentials for SVN repository in Eclipse?
  • How to view the git history of a specific file using GitKraken similar to PhpStorm/WebStorm
  • How to change a submodule remote url locally having to commit back these changes
  • On Mac, where can I find git-http-backend?
  • What does the question mark icon by a file name mean in Aptana?
  • 2 Solutions collect form web for “What files should be committed to github for an eclipse project”

    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.

    For a typical Java SE Eclipse project, you must commit .project and .classpath files, but not necessary .settings folder. I tested this scenario by committing one project from my windows environment and cloning that onto my Linux environment; Eclipse imported and run this project without any error. Hope this tip helps you reduce committing one folder (the .setting).

    Git Baby is a git and github fan, let's start git clone.