Skip to content

Instantly share code, notes, and snippets.

@JCash
Created April 15, 2017 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JCash/6ee3e30a2ec6767b3ba186bdeb78772c to your computer and use it in GitHub Desktop.
Save JCash/6ee3e30a2ec6767b3ba186bdeb78772c to your computer and use it in GitHub Desktop.
Create a binary patch
# Creating a binary patch with the diff between folders
#$ git diff --no-index --binary a/ b/ > diff.patch
#$ diff -Naur a/ b/ > diff.patch
git diff --no-index --binary $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment