我正在尝试创建一个补丁(我会发送给某人申请)。 但是,我在提交中添加了几个图像文件。 如何创建不仅包含代码更改,还包含图像文件blob的补丁?
答案 0 :(得分:2)
要输出包含二进制文件的差异,请在--binary
来电中添加git diff
标记:
git diff --binary
说明强>
--binary
In addition to --full-index, output a binary diff that can be applied
with git-apply.