如何使用git合并多个补丁?

时间:2014-10-31 10:55:17

标签: git git-branch git-merge git-patch

我需要将几个补丁合并到我的分支

指导原则是:

git checkout 4.4
git checkout -b 4.4-xamarin
git am Engine/Plugins/XamarinUE4/Patches/*

Patches中有33个不同的补丁,我遇到的问题是git am Engine/Plugins/XamarinUE4/Patches/*似乎根本没有做任何事情。

我得到以下输出:

D:\Ue4src\UnrealEngine>git am Engine/Plugins/XamarinUE4/Patches/*
Stray d:/Ue4src/UnrealEngine/.git/rebase-apply directory found.
Use "git am --abort" to remove it.

如果我查看"修改日期"似乎没有文件发生任何变化。

1 个答案:

答案 0 :(得分:0)

确保您没有git rebase正在进行中。如果没有,您可以安全地删除rebase-apply目录:Git error: previous rebase directory .git/rebase-apply still exists but mbox given

之后,使用git am应用补丁应该没问题。