EGit working directory not under the local repository

走远了吗. 提交于 2019-12-24 05:52:26

问题


The working directory should be visible on a WebDAV server and none of the parent folders should contain the repository itself.

I want to separate totally the folder for .git and the working directory (on a different drive, clean from project files and others).

Using Eclipse EGIT, the repository creation allows set of working directory (Target Location) within a path within the repository. No way found to set GIT_DIR or working_directory within Eclipse. Linking not an option (Windows)

The project .location contains the place within the repository (and that is a binary file anyway), so that should be configurable.

Is there any way to move the working directory to a totally different place? Is there a configuration option I have missed? After editing the files, do I really have to push all to the server, then commit to git?


回答1:


To summarize what has been written in the comments, EGit does not support Git repositories whose work directory is at a different location than the .git directory. I.e. the core.worktree configuration setting is not taken into account.

See also this open enhancement request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=433451



来源:https://stackoverflow.com/questions/40869926/egit-working-directory-not-under-the-local-repository

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