Apply patch files. Useful when receiving commits via email. See also git format-patch, which can generate patch files.
# To apply a patch file:
git am <path/to/file.patch>
# To abort the process of applying a patch file:
git am --abort
# To apply as much of a patch file as possible, saving failed hunks to reject files:
git am --reject <path/to/file.patch>