Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add existing eclipse java project to git

Tags:

java

git

eclipse

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)

like image 721
dmeehan Avatar asked Aug 26 '14 21:08

dmeehan


People also ask

How do I upload an existing Eclipse project to GitHub?

Step 1: Open Eclipse IDE and right-click on the project you want to push and go to Team->share project. Step 2: It will add the project to the given repository as shown below: Step 3: Again right-click on the project and go to Team->commit.

How do I Import a Java project from Eclipse to GitHub?

Copy the GitHub URL of the repository to the clipboard. Open Eclipse and choose Import –> Projects from Git (with smart import) Choose the Clone URI option in the Git import wizard and click Next. Confirm the URI, Host and Repository path parameters and click Next.


1 Answers

Follow these steps

  1. Right click on the project
  2. Select Team -> Share
  3. You will be prompted to select the tool you prefer
  4. Click Create -> Browseif you already have one
  5. Select git and go on
like image 136
vratojr Avatar answered Oct 05 '22 22:10

vratojr