如何反转未提交更改的 git diff 输出?

How to reverse the git diff output for uncommitted changes?

我有一些未提交的、未暂存的更改,我想从中创建补丁,但也翻转 +- 行。

git diff 显示如下变化:

-apple
+orange

我希望它像

+apple
-orange

但没有提交更改,然后使用 git diff commita..commitb

git diff -R

-R表示“反转”。