一、当前修改差异文件打patch
git diff > ***.patch
二、某次commit 打patch
git format-patch -1 commitId
三、patch应用
patch p0 < ***.patch