Apply a patch to files and/or to the index. More information: https://git-scm.com/docs/git-apply.
git apply --verbose {{path/to/file}}
git apply --index {{path/to/file}}
curl {{https://example.com/file.patch}} | git apply
git apply --stat --apply {{path/to/file}}
git apply --reverse {{path/to/file}}
git apply --cache {{path/to/file}}