Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to isolate Eclipse workspace from git local repository?

I installed EGit on Juno and created a Java project in workspace of Eclipse. Then I shared that project to Git. Then when I check the project's properties, I found that the project had been moved from its original workspace into Git local repository. When I make some changes in Eclipse editor, the changes are made on the local repository without commit.

How to isolate Eclipse workspace from git local repository?

(Well, my Eclipse workspace is ~/Documents/workspace, my git local repository is ~/git/myrepository1. )

like image 232
chance Avatar asked Nov 01 '12 18:11

chance


1 Answers

The workspace is still in its original location outside of edit. It's the projects that have been moved into the git-controlled directories. Normally projects are created in the Eclipse workspace folder but you can override that default.

If you really want to isolate changes from git, you'll have to break git's control of the project, but you may still have to move the project contents back into your workspace. Unfortunately, the process of getting further changes back into git gets really messy.

I've found it unnerving at first the way git controls my eclipse projects, but after a while it does begin to make sense and is really a very powerful version control function.

like image 110
Chris Gerken Avatar answered Oct 29 '22 12:10

Chris Gerken