Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有大约 100 个像下面这样的补丁,有没有办法一次性应用所有这些补丁?
0001-*.patch,0002-*.patch,0003-*.patch............
git am例如,您可以使用
git am
$ git am *.patch
对于所有可用选项,请查看手册页。
要获得所有补丁的一次提交:
git apply *.patch git add -A git commit -m '<your message>'
补丁按目录列表的顺序应用。
git apply的大部分标志是git am