借鉴:http://www.cnblogs.com/itech/archive/2009/08/19/1549729.html patch总结: 单个文件 diff –uN from-file to-file >to-file.patch patch –p0 < to-file.patch patch –RE –p0 < to-file.patch 多个文件 diff –uNr from-docu to-docu >to-docu.patch patch –p1 < to-docu.patch patch –R –p1 <to-docu.patch