Egit eclipse:解决冲突而不提交所有文件 [英] Egit eclipse: resolve conflict without commit all files

查看:441
本文介绍了Egit eclipse:解决冲突而不提交所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在git仓库中存在冲突时,在标记为解决冲突文件后,在eclipse中,我不能仅提交该文件,而是在sourcetree中提交。



感谢!



p有没有办法在egit中只提交一个文件? >



解决方案

是的。解决冲突后,右键点击文件,转到团队>添加到索引,然后右键单击包含的项目,转到团队> Commit



请注意,仅将仅添加这些文件添加到 GIT索引有兴趣下次提交。如果不小心添加了更多文件,则可以通过右键单击文件并选择 Team>来从GIT索引中删除这些文件。从索引中删除


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!

解决方案

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

这篇关于Egit eclipse:解决冲突而不提交所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆