1.生成patch?
git format-patch HEAD^ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? //最近一次提交節(jié)點(diǎn)的patch
git format-patch??節(jié)點(diǎn)A?? 節(jié)點(diǎn)B?//兩個(gè)節(jié)點(diǎn)之間的patch
2.使用patch
git apply patch?//將patch文件內(nèi)容差分到本地
git apply --check patch? //檢測(cè)patch是否可以正常打入
3.git?log --author
git?log --author=“author” 可以查找某一個(gè)作者所有的提交