Multiple patches with git am
We can apply multiple patches using git am command.Examples:
git am patch1 patch2
git am *.patch
I have faced an error while using *.patch.
*.patch files were in current directory.
These patch files have been generated using duplicate repo maintained at a different location.
$ cd repo1
$ git commit -am
multiple commits
$ git format-patch master
$ cd repo1_dup
$ cp repo1/*.patch ./
$ git am *.patch
error: cannot read mbox some_diff.patch
error: cannot split patches from some_diff.patch
fatal: Failed to split patches.
$
Currently working on resolving this issue.
Forcefully adding a signed-off by in git am
Another interesting thing I am exploring is forcefully adding a signed-off by while applying a patch using git am.Ref:
- https://git-scm.com/docs/git-am
No comments:
Post a Comment