How to isolate Eclipse workspace from git local repository?

岁酱吖の 提交于 2019-12-10 03:36:20

问题


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. )


回答1:


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.



来源:https://stackoverflow.com/questions/13183548/how-to-isolate-eclipse-workspace-from-git-local-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!