【发布时间】:2015-07-09 23:02:42
【问题描述】:
我想apply a patch including its commit message,如何捆绑单个提交并应用它?
给定历史示例:
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-through-0d44b41捆绑为002.bundle,然后应用它?
注意:我已经可以使用补丁文件执行此操作,但我还想自动包含提交信息。
我尝试使用此命令跟随git-scm doc on bundle,但失败为:
$ git bundle create 001.bundle 0d44b41^ 0d44b41
fatal: Refusing to create empty bundle.
【问题讨论】:
-
...和
git am应用补丁。
标签: git