[ << Working with source code ] | [Top][Contents][Index][ ? ] | [ Compiling >> ] | ||
[ < Git log ] | [ Up : Advanced Git procedures ] | [ Sending and receiving patches via email > ] |
2.4.6 Applying remote patches
TODO: Explain how to determine if a patch was created with
git format-patch
.
Well-formed git patches created with git format-patch
should be committed with the following command:
git am patch
Patches created without git format-patch
can be
applied in two steps. The first step is to apply the patch to the
working tree:
git apply patch
The second step is to commit the changes and give credit to the author of the patch. This can be done with the following command:
git commit -a --author="John Smith <john@example.com>"
[ << Working with source code ] | [Top][Contents][Index][ ? ] | [ Compiling >> ] | ||
[ < Git log ] | [ Up : Advanced Git procedures ] | [ Sending and receiving patches via email > ] |