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

假装没事ソ 提交于 2019-12-07 21:44:51

问题


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 NotePad++ from Command line with Compare Plugin showing compare result


回答1:


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


来源:https://stackoverflow.com/questions/38823392/how-do-i-use-notepad-compare-as-the-diff-tool-in-git-bash-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!