0

I'm trying to create a patch (that I'll send to someone to apply). However, I added a couple of image files to the commit. How do I create a patch that will contain not only the code changes, but also the image file blobs?

2
  • 1
    If you're using git diff to construct the patch file, you can try including the --binary option Commented Dec 4, 2017 at 22:22
  • It works. Please post as a comment, and I'll accept. Commented Dec 4, 2017 at 22:30

1 Answer 1

2

To output a diff with binary files, include the --binary flag to your git diff call:

git diff --binary

Description:

--binary
  In addition to --full-index, output a binary diff that can be applied
    with git-apply.
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.