处理合并冲突的编辑器
是否有一个编辑器可以识别合并冲突标签并并排显示各个部分?最好是像 p4merge 这样的东西?
<<<<< local
...
=========
....
>>>>> remote
Is there an editor that recognizes merge conflict tags and displays the sections side by side? Preferably something like p4merge?
<<<<< local
...
=========
....
>>>>> remote
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我们的工具 ECMerge (http://www.elliecomputing.com) 可以做到这一点,它有一个“打开冲突文件”菜单,其中包含可与 SVN、CVS、Mercurial、Bazaar、Git 和 Perforce 的标记配合使用。
Linux 上的 Windows Exlorer、Nautilus、Konqueror 和 Thunar 的资源管理器插件中也存在该菜单。
our tool ECMerge (http://www.elliecomputing.com) does that, it has a Open Conflict file menu which works with markers from SVN, CVS, Mercurial, Bazaar, Git and Perforce.
the menu is present also in the explorer plugins for Windows Exlorer, Nautilus, Konqueror and Thunar on Linux.
我的方法是使用 KDiff3 (一个非常有用的 diff/merge 工具)并为其提供 3 个文件使用 git cat-file 和 git ls-files -u 提取。这是一项工作,但随后我就会确切地知道发生了什么。 Git 添加了对配置特定合并工具的支持,因此可能应该可以比
My approach to this has been to use KDiff3 (an extremely useful tool for diff/merge) and feed it 3 files extracted with
git cat-file
andgit ls-files -u
. It is a bit of work, but then I get to know exactly what is going on. Git have added support for configuring a specific merge tool, so probably it should be possible to do the operation more simpler than