Skip to content

Instantly share code, notes, and snippets.

@DimitryDushkin
Forked from zeuxisoo/gist:980174
Created September 5, 2019 15:17
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 DimitryDushkin/9020b6f5639fbbd46bc0746c5bfc2586 to your computer and use it in GitHub Desktop.
Save DimitryDushkin/9020b6f5639fbbd46bc0746c5bfc2586 to your computer and use it in GitHub Desktop.
How to use git diff to patch file

Create patch file

git diff > patch.diff

Apply path file

patch -p1 < patch.diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment