Why is Commit Greyed-out in Eclipse's Egit

*爱你&永不变心* 提交于 2020-01-04 02:52:13

问题


The commit button in EGit has mysteriously been greyed-out. It was working just fine a few days ago. Does anyone know how to fix this. I haven't found any clues on Google. I'd include a screenshot, but I don't have enough reputation points yet.


回答1:


I was running into the same problem and finally managed to solve it as follows:

Since everything was working before I added the remote host, amd everything worked in my small toy project, I removed and re-added my remote host using gut bash:

git remote remove origin

git remote add origin git@my_servername:my_repository.git

After that, Egit worked as expected.




回答2:


I had this issue and found that I had unstaged changes after a remote fetch and merge. After moving the unstaged changes to Git Staging the "Commit" button was enabled.




回答3:


Try reassigning the remote origin using eclipse.If still not working, move all your files from unstaged to staging.Then the commit message will be enabled



来源:https://stackoverflow.com/questions/8082322/why-is-commit-greyed-out-in-eclipses-egit

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