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