提交后 Egit 上演?

发布于 2024-09-18 08:32:24 字数 206 浏览 9 评论 0原文

我从今天开始使用 egit 进行 Eclipse

,但是有一个问题。

我提交了一个文件(工作完美),但提交后文件被暂存以再次提交? 并使用“git status”列出文件“要提交的更改:” 但如果没有任何更改,“git diff”就没有输出。

怎么了?

在命令行中提交似乎按预期工作。这是一个普遍的出口问题吗?

问候

I'm using egit for eclipse since today

but there is a problem.

I commited a file(works perfectly), but after the commit the file is staged to commit again?
and with "git status" the file is listed "Changes to be committed:"
But without any changes "git diff" has no output.

What's the matter?

commiting in command line seems to work as intended. Is it a general egit problem ?

greetings

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

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

发布评论

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

评论(2

土豪我们做朋友吧 2024-09-25 08:32:24

看起来像 错误 307560

基本上,似乎存在这样一种情况:EGit 或 JGit 会在提交前或提交后立即更改文件的文件模式,然后该文件在项目中被标记为脏。
奇怪的是,EGit 获取的文件模式更改足以将文件标记为脏文件,但不足以允许您签入新的文件模式更改(如果您愿意)——即使使用脏文件标记,也尝试提交告诉您“未选择任何更改的项目。您希望
修改最后一次提交?”

Looks like bug 307560

Basically, there appears to be a situation where EGit or JGit change the file mode of a file, either immediately pre- or post- commit, and then the file gets marked as dirty in the project.
Weirdly, EGit picks up the file mode change enough to mark the file as dirty, but not enough to allow you to check in the new file mode change (were you to want to) -- even with the dirty file marker, attempting to commit tells you "No changed items were selected. Do you wish to
amend the last commit?"

把回忆走一遍 2024-09-25 08:32:24

您需要将更改的文件从“Unstaged Changes”窗口拖到“Staging Changes”窗口

You need to drag changed files from "Unstaged Changes" window to "Staged Changes" window

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