Egit eclipse: resolve conflict without commit all files

旧街凉风 提交于 2019-12-11 09:21:49

问题


When in a git repository there is a conflict, after marking as resolved the conflicted file, in eclipse I can't commit only that file, but yes in sourcetree.

Is there any way to commit only one file in egit when there is a conflict?

Thanks!


回答1:


Yes. After resolving the conflict right click on the file go to Team > Add to Index , then right click on the included project go to Team > Commit.

Note that ADD ONLY those file to GIT index in which you are interested in commit next time. If accidentally you added more file then you can remove these file from GIT index by right clicking on the file and selecting Team > Remove from Index



来源:https://stackoverflow.com/questions/22377225/egit-eclipse-resolve-conflict-without-commit-all-files

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