Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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?
git diff
--binary
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.
Add a comment
Required, but never shown
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.
Explore related questions
See similar questions with these tags.
git diffto construct the patch file, you can try including the--binaryoption