I use to git diff to generate patches that can be applied to remote server to update a project.
Locally, I run:
git diff --no-prefix HEAD~1 HEAD > example.patch
Upload example.patch to remote server and run:
patch --dry-run -p0 < example.patch
If dry-run is successful, I run:
patch -p0 < example.patch
This works well, except when diff includes binary files. Today, I found that I can use:
git diff --no-prefix --binary HEAD~1 HEAD > example.patch
The problem is that the generated patch file can not be applied using patch.
How can I apply these binary patch files without having git installed the server?
I would like to maintain ability to use dry-run.
Thank you