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
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top