Egit staged after commit?

╄→尐↘猪︶ㄣ 提交于 2019-12-07 08:40:55

问题


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


回答1:


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?"




回答2:


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



来源:https://stackoverflow.com/questions/3691782/egit-staged-after-commit

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