Git, SVN and Eclipse workflow

eclipse, egit, git, svn

Solution

I've worked briefly with the egit plugin (I actually recently stopped using it and just use msysgit as my Git guiclient and run it separately from Eclipse). I find Eclipse very busy as is and adding this plugin slows it down (for me at least).

What I did when setting up an already cloned project in Eclipse:

In Eclipse. File -> Import -> Existing Project into Workspace

Select root directory of project. Do NOT check copy projects into workspace. Click finish.

After project has been imported. Right click on project, go to Team -> Share Project

Select Git as a repo type, click next

Check use or create repo in parent folder of project. Since you already cloned the project it will be tracked with git. When you check this option it will show the project, the path, and the repo (.git).

Click finish and you will be all set.

Problem

I am trying to adopt the following workflow: - `git svn clone` a svn repository through command line (`egit` doesn't support git-svn) - Open the project in eclipse with `egit` since I rather use egit to branch, merge, commit etc... - When i'm ready commit the changes back, I use use `git svn dcommit` to commit back to svn I am having trouble with step number 2, don't understand how to import a git project, eclipse tells me i can't import it to use the same directory it's currently in because another project with the same name is already there. this is confusing. Anyone knows how to do this ? Also would like to hear other workflow examples that uses `egit` and `git svn`. I am aware that it is better to do it all through command line, however, I am trying to ease the move to git for fellow developers in my team, who are not used to command line interface etc...

Original source