Just add --no-ext-diff
option:
git diff --no-ext-diff > file.diff
题
I've configured my git to use Meld as the diff tool:
git config --global diff.external /home/myname/diff.py
When I'm trying to save a diff to a file by: git diff > file.diff
Meld is opened and the diff is not saved.
How can I save the diff to a file without opening Meld?
解决方案
Just add --no-ext-diff
option:
git diff --no-ext-diff > file.diff