1. //生成补丁 svn diff > patchname.patch //打补丁 patch -p0 < /patches/20170309.patch //查找打补丁过程中的失败文件 find . -name '*.rej'  //取消打补丁 patch -p0 -RE < /patches/20170309.patch 进一步阅读: http://stackoverflow.com/ques ...

    阅读全文
  2. 生成patch: diff -ruN old new 比如: diff -urN old new > 1.patch  打补丁: 命令很简单: patch -p0 < 1.patch 但是怎么打还是问题: 1. 什么目录下打补丁?什么目录下可以打补丁? 2.在第几层打目录? 举几个例子来帮助理解一下: 在当前目录下创建如下的机构: $mkdir new $mkdir old $echo &quo ...

    阅读全文