Git Format Patch¶
Intrudoction¶
把 git commit 變成一個一個的 patch, 並且會利用 commit message 來命名
Usage¶
最新的 N 個 commit¶
git format-patch -N
ex :
$ git format-patch -3
0001-shell.c-A-full-RBuffer-with-no-NL-can-freeze-shell-o.patch
0002-test-cover-grep.patch
0003-runtime-Do-install-generated-syntax-file-also-test-t.patch
打 patch¶
git am PATCH
ex :
$ git am 0001-shell.c-A-full-RBuffer-with-no-NL-can-freeze-shell-o.patch
Applying: shell.c: A full RBuffer with no NL can freeze shell output. #3156