git 依据SHA值提取文件patch

git format-patch -M master //当前分支所有超前master的提交

git format-patch -s SHA值 //此SHA值提交以后的所有PATCH

git format-patch -1 SHA值 //此SHA值的提交patch

git format-patch -n //从master售前n个提交的内容

git format-patch -n SHA值 //从SHA值开始(含SHA值当次)之前的N次提交

原文地址:https://www.cnblogs.com/juking/p/7103156.html