use Winmerge inside of Git to file diff

前端 未结 8 1013
清酒与你
清酒与你 2020-11-27 09:34

Is there a way to use Winmerge inside of git to do Diffs?

相关标签:
8条回答
  • 2020-11-27 10:06

    Without configuration:

    git difftool --tool winmerge
    

    Assuming:

    • Winmerge is installed
    • Git for windows is installed, from "git version 2.12.0.windows1" or above (although earlier versions of git may have introduced the command).
    0 讨论(0)
  • 2020-11-27 10:10
    git config --global diff.tool winmerge
    git config --global difftool.winmerge.cmd "\"$PROGRAMFILES\\WinMerge\\WinMergeU.exe\" -u -dl \"Local\" -dr \"Remote\" \"\$LOCAL\" \"\$REMOTE\""
    git config --global difftool.prompt false
    

    As per the WinMerge command line manual: "Parameters are prefixed with either a forward slash ( / ) or dash ( - ) character"

    0 讨论(0)
提交回复
热议问题