Quantcast
Channel: patch –易春木
Viewing all articles
Browse latest Browse all 5

git format-patch 可以限定個數

$
0
0

git format-patch 預設會從某個commit開始
一路依照commit作出n所有patch檔案

但是有可能你只想要產生該commit的patch2,其實很簡單
後面加個-1就可以啦

git format-patch  xxxxxxxxxxxxx  -1 

如果你要該commit往後的兩個commit的patches
就改成-2

git format-patch  xxxxxxxxxxxxx  -2 

Viewing all articles
Browse latest Browse all 5

Trending Articles