svn diff 和patch的使用
生成diff文件:
svn diff > xxx.diff
生成 patch:
同事 A 运行如下命令生成 patch:
svn diff > aaa.patch
应用 patch:
同事 B 运行如下命令应用 patch:
patch –p0 < ../aaa.patch
当他 review 完代码,想删除该 patch 时, 可运行:
patch –p0 -R < ../aaa.patch
生成diff文件:
svn diff > xxx.diff
生成 patch:
同事 A 运行如下命令生成 patch:
svn diff > aaa.patch
应用 patch:
同事 B 运行如下命令应用 patch:
patch –p0 < ../aaa.patch
当他 review 完代码,想删除该 patch 时, 可运行:
patch –p0 -R < ../aaa.patch