git diff没有在Mac上打开opendiff
我正在使用git同时处理一个文本文档,并试图找到一种很好的可视化方式来查看其他人所做的更改。我可以通过键入git diff没有在Mac上打开opendiff,git,macos,git-diff,opendiff,Git,Macos,Git Diff,Opendiff,我正在使用git同时处理一个文本文档,并试图找到一种很好的可视化方式来查看其他人所做的更改。我可以通过键入git diff来实现这一点,但结果显示在终端上。我在读一篇文章,似乎可以将git配置为使用opendiff作为diff的默认查看器 $ git config --global merge.tool opendiff $ git config --global diff.tool opendiff $ git config --global difftool.prompt false 我仍
git diff
来实现这一点,但结果显示在终端上。我在读一篇文章,似乎可以将git配置为使用opendiff
作为diff的默认查看器
$ git config --global merge.tool opendiff
$ git config --global diff.tool opendiff
$ git config --global difftool.prompt false
我仍然在终端上获得输出。我做错了什么?你需要使用命令
git difftool
(而不是git diff
)和git mergetool
(而不是git merge
)让git使用opendiff。你需要使用命令git difftool
(而不是git diff
)和git mergetool
(而不是git merge
)让git使用opendiff