git patch製作

git patch製作

EX: 將HEAD至最近一條commit 製作成patch

git format-patch HEAD~1


這時應該會出現一個檔案











1. 之後要apply patch 在terminal 輸入

git am 0001-fix.patch

即可

2. Source Tree 

Action -> apply patch -> 選擇剛剛的patch檔案





張貼留言

0 留言