1.git diff生成patch用法
# git diff ./ > test.patch //生成patch
# patch -p1 < test.patch //打patch
# git apply test.patch //也可用这个命令打patch
注意:使用git diff产生的patch都应该在执行patch 命令时,
指定-p1,当位置是【在哪里制作的patch,就在哪里 执行】
# git diff ./ > test.patch //生成patch
# patch -p1 < test.patch //打patch
# git apply test.patch //也可用这个命令打patch
注意:使用git diff产生的patch都应该在执行patch 命令时,
指定-p1,当位置是【在哪里制作的patch,就在哪里 执行】