1. 先查好你要從哪個commit開始產生patch
記下該commit ID (即下方 START_COMIT_NUM)
2. 產生patch
會從START_COMIT_NUM 開始產生
若想限制patch數量請看 http://eeepage.info/git-format-patch-num/
git format-patch START_COMIT_NUM
3.清除之前的訊息
git am --abort
4.開始上patch
git am 0001-Disable-unnessesary-con-kernel-configuration.patch git am 0002-Fix-vibrater.patch git-am 0003-Update-BCT-file.patch ...
如果不想一個一個輸入指令來patch
下方指令會按照文件名的顺序一次am所有patch
git am *.patch