当我使用
我现在开始使用
谢谢。
git diff --relative HEAD^..HEAD
时,我得到了一些漂亮的输出,但我需要剥离目录外的路径。我现在开始使用
git format-patch
,想要使用--relative
选项,但是没有找到相关的选项。请问如何实现相同的效果?谢谢。
--relative
选项。可能已被弃用。该选项在此版本文档中有记录:https://git-scm.com/docs/git-format-patch/1.6.0 - Brent Bradburngit help diff
命令,你会看到其中的 --relative 选项。 - Elijah Lynn