egit 和 git unstaged 文件显示不同的状态

发布于 2024-12-12 12:16:49 字数 487 浏览 5 评论 0原文

我使用 git svn fetch svn repo,并执行克隆->分支->rebase->合并->dcommit 步骤。使用 eclipse egit 和 cygwin 客户端,开发几天一切都可以。

但是有一天,在合并/dcommit步骤之后,我发现eclipse egit stage视图状态与cygwin命令行中的git status不同。当某些文件在eclipse中取消暂存更改时,cygwin'git status'显示没有任何变化;如果使用egit提交elcipse,cygwin 命令“git status”显示未暂存的文件更改了刚刚使用 egit 提交的内容。如果使用 cygiwn git 客户端提交更改,egit 显示相同的内容暂存文件已更改。问题文件始终是某些文件。

我用过吹法,但是没用 git 重置 --hard。 重新克隆 svn 存储库。将新克隆的存储库从 svn 导入到 eclipse 项目,它显示启动时更改的文件,并且始终显示这些文件。

有人帮忙吗!!

i use git svn fetch svn repo,and do clone->branch->rebase->merge->dcommit step.with eclipse egit and cygwin client,do some days developing all is ok.

but one day ,after a merge/dcommit step,i found eclipse egit stage view status is different from git status in cygwin command line.when some files unstaged changes in eclipse,cygwin 'git status' show nothing changes;if commit with egit in elcipse,the cygwin command 'git status' show the unstaged files changed that what just commited with egit.and if commit changes with cygiwn git client,egit show the same staged files changed.the problom files is always some files.

i've use blow method,but useless
git reset --hard.
reclone the svn repo .importing new cloned repo from svn to eclipse project,it show the file changed at start,and always those files.

anybody help!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慈悲佛祖 2024-12-19 12:16:50

完全是在黑暗中拍摄,但是:您的存储库的一部分中是否有符号链接指向它的另一部分?我有这个问题,它使 eclipse 感到困惑(但不会使命令行 git 感到困惑)。

Eclipse, Egit 和符号链接或符号链接 - 是否可以制作一个肮脏的 Eclipse 插件来解决此问题?

Total shot in the dark, but: do you have a symlink in one part of your repo, pointing to another part of it? I have that problem, and it confuses eclipse (but does not confuse the command-line git).

Eclipse, Egit and Symlinks or symbolic links - Is it possible to make a dirty eclipse plugin to fix this?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文