我configured my git to use Meld as the diff tool:
git config --global diff.external /home/myname/diff.py
当我尝试通过以下方式将差异保存到文件时:git diff > file.diff
Meld打开并且不保存差异。
如何在不打开Meld的情况下将diff保存到文件中?
答案 0 :(得分:1)
只需添加--no-ext-diff
选项:
git diff --no-ext-diff > file.diff