我想要apply a patch including its commit message,我該如何捆綁一個提交併應用它?Git包單提交?
給出的例子歷史:
0a8b835 intel_pmc_ipc: Add Intel Apollo Lake PMC IPC driver
0d44b41 tc1100-wmi: Delete an unnecessary check before the function call "kfree"
b8830a4 dell-laptop: Fix allocating & freeing SMI buffer page
2ec1e9e target: Bump core version to v5.0
- 說我想捆綁
0d44b41
爲001.bundle
,並應用它? - 假設我想將
b8830a4
通過0d44b41
作爲002.bundle
,並將其應用?
注意:我已經可以使用補丁文件做到這一點,但我也想自動包含提交mes。
我試圖按照git-scm doc on bundle使用此命令,作爲失敗:
$ git bundle create 001.bundle 0d44b41^ 0d44b41
fatal: Refusing to create empty bundle.
'git format-patch' – jthill
...和'git am'應用補丁。 – larsks