1.选择菜单“Window”->"Preference"
2.左边树菜单选择“Team”->"Git"->"Committing"
3.在复选框"Use staging View to commit instead of Commit Dialog"下方有一个复选框“Automatically stage selected resource on Commit”,把这两个复选框的勾都去掉。
4.试着再次提交,如果还是出现”There are no staged files"文字,关闭Eclipse再打开一次,之后就也该好了。
参考文档:https://www.zhihu.com/question/43408545/answer/95481131
本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/xiandedanteng/p/7506914.html,如需转载请自行联系原作者