How do I use Notepad++ Compare as the diff tool in git bash/command line?

后端 未结 1 876
太阳男子
太阳男子 2021-01-06 05:02

Is there any way to change the default diff tool in gitbash?

This post seems to suggest it is possible but they provided no command line examples. Link: Running Not

相关标签:
1条回答
  • 2021-01-06 05:50

    Since the official diff plugin for Notepad++ seems to be uph0/compare, a possible setting could be:

    $ git config --global --add diff.guitool nppdiff
    $ git config --global --add difftool.nppdiff.path "C:/Program Files/Notepad++/plugins/ComparePlugin/compare.exe"
    $ git config --global --add difftool.nppdiff.trustExitCode false
    
    0 讨论(0)
提交回复
热议问题