问题
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