【问题标题】:How to use winmerge as the merge/diff tool for git installed on Linux如何使用 winmerge 作为 Linux 上安装的 git 的合并/差异工具
【发布时间】:2016-01-13 15:39:36
【问题描述】:
$ cd testGit/
$ ls
first.txt  second.txt
$ git log --oneline
9c88fb7 add second lines to 1st & 2nd files
9c3da6c add 1st & 2nd files

$ git diff 9c88fb7 9c3da6c first.txt
warning: LF will be replaced by CRLF in first.txt.
The file will have its original line endings in your working directory.
diff --git a/first.txt b/first.txt
index 4a0143f..9c59e24 100644
--- a/first.txt
+++ b/first.txt
@@ -1,2 +1 @@
 first
-first2

$ git difftool HEAD HEAD~1
/git/2.5.3/git-core/mergetools/winmerge: line 124: /c/Program Files (x86)/WinMerge/WinMergeU.exe: No such file or directory
/git/2.5.3/git-core/mergetools/winmerge: line 124: /c/Program Files (x86)/WinMerge/WinMergeU.exe: No such file or directory

我已将 redhat 驱动器安装到 Z:/testGit/。

问题我可以使用 winmerge 对两个提交进行比较(即 9c88fb7 9c3da6c)吗?

【问题讨论】:

    标签: git winmerge git-difftool


    【解决方案1】:

    WinMerge 是为 Windows 开发的。

    From their site:

    WinMerge 是适用于 Windows 的开源差异和合并工具。

    还有:

    支持 Microsoft Windows 2000/XP/2003/Vista/2008/7/8/2012

    这是一个链接到 Linux 的替代差异工具的网站: http://www.linuxalt.com/linux-alternatives-to/windows/winmerge.html

    【讨论】:

      猜你喜欢
      • 2012-05-29
      • 2011-01-05
      • 2015-03-07
      • 2010-09-07
      • 2016-01-23
      • 2010-10-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多