Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with Eclipse + EGit - confused

Tags:

git

eclipse

I am used to using Eclipse with SVN and CVS.

Now I want to use GIT via EGIT.

The goal is to have a local repository, not in the eclipse work-space, that my changes go into. That way, I can make changes, commit them, and have a repository with the changes that I can back up (at least, that's how it works in SVN).

Following the user's guide, I find it creates the repository within my Eclipse project in the workspace, which is recommended against. What am I missing?

Steps:

  • Create a Java project in Eclipse (Test)
  • On Project right click->Team->Share Project->Git
  • ...Next - shows "Configure Git Repository" Panel ...the only repository it will let me create is inside the project.

Huh?

like image 855
SChaser Avatar asked Jun 12 '11 05:06

SChaser


1 Answers

You can create multiple projects under one repo in EGit, see http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Git_Repository_for_multiple_Projects In that case, EGit will do it automatically.

You can also use the Git Repository view to create an empty git repo outside of the workspace. See http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Repository After that, you can create new java projects and specify the external git repo subdirectory as their location.

like image 123
Paul Webster Avatar answered Oct 05 '22 19:10

Paul Webster