EGit工作目录不在本地存储库下 [英] EGit working directory not under the local repository

查看:144
本文介绍了EGit工作目录不在本地存储库下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想将完整的文件夹分为.git和工作目录(在不同的驱动器上,从项目文件和其他文件清除)。



使用Eclipse EGIT,存储库创建允许在工作目录存储库中的路径。
没有办法在Eclipse中设置 GIT_DIR 或working_directory。链接不是一个选项(Windows)



项目.location包含存储库中的位置(这是一个二进制文件),因此应该是可配置的。 p>

有没有办法将工作目录移动到完全不同的地方?
有没有我错过的配置选项?
编辑文件后,我真的要把全部推送到服务器,然后提交给git?

解决方案

总而言之,EGit不支持Git仓库,其工作目录位于与 .git 目录不同的位置。即



另请参阅此开放式增强请求: https://bugs.eclipse.org/bugs/show_bug.cgi?id=433451


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?

解决方案

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

这篇关于EGit工作目录不在本地存储库下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆