0
$ 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 を使用して 2 つのコミット (9c88fb7 9c3da6c) を比較できますか?

4

1 に答える 1

1

WinMerge は Windows 用に開発されました。

彼らのサイトから

WinMerge は、Windows 用のオープン ソース差分およびマージ ツールです。

また:

Microsoft Windows 2000/XP/2003/Vista/2008/7/8/2012に対応

Linux 用の代替 diff ツールへのリンクがあるサイトは次のとおりです: http://www.linuxalt.com/linux-alternatives-to/windows/winmerge.html

于 2016-01-13T15:45:18.510 に答える