1

winmerge を difftool として使用しようとしましたが、私の git bash では使用できません。次のコマンドを使用しようとしました。

git config --replace --global diff.tool winmerge
git config --replace --global difftool.winmerge.cmd "winmerge.sh \"$LOCAL\" \"$REMOTE\""
git config --replace --global difftool.prompt false

.gitconfig ファイルを直接書き込もうとしました。そして、Git2.5 をダウンロードして、mergetoo/ で winmerge ファイルを見つけ、Git にコピーします。PATHを設定した後、次のようにgit difftool --tool-help表示します

    'git difftool --tool=<tool>' may be set to one of the following:
                    vimdiff
                    vimdiff2
                    winmerge

    The following tools are valid, but not currently available:
                    araxis
                    bc3
                    codecompare
                    ...

次にgit difftool、bashはvimdiffを使用するだけで、git difftool -t winmerge(or WinMerge)実際にはbashもvimdiffを使用してみました。


私の努力が功を奏したようです。git-for-windows 1.9.5 をアンインストールし、git-for-windows 2.4.5 をインストールしてから、github からダウンロードした git-master.zip から winmerge ファイルを git のフォルダーにコピーしまし../git-core/mergetool/$PATH。これらの手順の後、 and と入力git config merge.tool winmergegit config diff.tool winmergeました。git mergetoolWinMerge の起動に成功しましたが、まだ WinMerge を起動git difftoolできません。


したがって、私の試行は単一ではないため、どの操作がキーポイントかわかりません。

4

0 に答える 0