How to create and apply a patch with Git - Ariejan.net:

Applying the patch
...
First, take a look at what changes are in the patch. You can do this easily with git apply

git apply --stat fix_empty_poster.patch

Note that this command does not apply the patch, but only shows you the stats about what it'll do. After peeking into the patch file with your favorite editor, you can see what the actual changes are.

Next, you're interested in how troublesome the patch is going to be. Git allows you to test the patch before you actually apply it.

git apply --check fix_empty_poster.patch


To apply, he's got some fancy way of signing it. You (where "You" == "I") can use:

git apply fix_empty_poster.patch (no "check" any more)

Labels: ,