How do I add existing eclipse java project to git

How do I add an existing java project in eclipse to git?

I noticed when creating the project there was an option to add to source control but I can’t find this option for an existing project. Is this possible from the git plugin in eclipse or must it be done from the command line? (I am using a Mac)

  • best way to export Eclipse project to GitHub
  • How to import a local GIT/Maven project/folder into eclipse?
  • How to replace an eclipse project with latest version from head using EGit?
  • Which version of eclipse works with egit?
  • Codenameone UIDesigner out of sync with file
  • Migrating SVN to Android Studio
  • Reset remote git branch
  • No such file or directory - git ls-files
  • github: server certificate verification failed
  • Using git for plugin development
  • Git checkout in Chef recipe not working
  • Issue w. AWSDevTools was not loaded (git aws.push)
  • One Solution collect form web for “How do I add existing eclipse java project to git”

    Right click on the project, select Team then Share and you will be prompted to select the tool you prefer. Select git and go on.

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