是否可以使用 winmerge 查看 cygwin 的 git diff?
我喜欢在 cygwin 上使用 git,但唯一的缺点是当我想要 git difftool 时我无法使用任何有用的东西。 git diff
大多数时候对我来说没问题,但有时我想使用 winmerge 通过 git difftool
查看这些差异,有什么方法可以设置它吗?
I like to use git on cygwin, but the only downside I have is when I want to git difftool
I cannot use anything useful. git diff
is fine for me most of the time, but sometimes I'd like to use winmerge to view these diffs via git difftool
is there some way to set this up?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 cygwin,SO 问题“如何我可以将 Mercurial 配置为在 cygwin 下使用 WinMerge 进行合并吗?”可以应用于 git(将以下 winmerge 脚本与旧问题“使用 Git 内部的 Winmerge 来文件 diff")
流程
您可以在这篇文章“Git + WinMerge + Cygwin" (来自 Thiru Thirunavukarasu):
(但我仍然推荐上面的
WinMergeU.exe
选项)再次,使用这些 WinMerge 选项进行一些测试)
脚本
如果您想使用“所有 WinMerge”,对于 diff 和 merge git 功能,您可以使用以下 < a href="https://gist.github.com/509918" rel="nofollow noreferrer">要关注的要点页面来自 ecerulm (Ruben Laguna):
For cygwin, the SO question "How can I configure Mercurial to use WinMerge for merges, under cygwin?" can be applied to git (when combining the following winmerge script with the older question "use Winmerge inside of Git to file diff")
Process
You have more details in this article "Git + WinMerge + Cygwin" (from Thiru Thirunavukarasu):
(but I would still recommend the
WinMergeU.exe
options from above)(again, do some testing with those WinMerge options)
Scripts
If you want to go "all WinMerge", both for diff and merge git functions, you have this gist page to follow from ecerulm (Ruben Laguna):