我正在尝试应用由其他人创建的git补丁git-format-patch.该补丁是针对HEAD背后的一个提交而制作的,但据我所知,这应该无关紧要.当我跑git am 0001.patch,我得到错误:
git-format-patch
git am 0001.patch
error: source.c: does not match index
我不太熟悉git补丁的格式,但似乎索引不匹配,但源确实匹配.
解决这个问题的最佳方法是什么?手动更改索引以匹配?或者我应该git-apply在提交时复制作者和描述信息吗?
git-apply
git patch
git ×1
patch ×1