Skip to content

Instantly share code, notes, and snippets.

@soardex
Created December 7, 2016 05:04
Show Gist options
  • Save soardex/4f1eb399c4c603a2d5fc7a98bfe5c86b to your computer and use it in GitHub Desktop.
Save soardex/4f1eb399c4c603a2d5fc7a98bfe5c86b to your computer and use it in GitHub Desktop.
Creating Patch And Applying Patch In Git
git diff --no-prefix master > diff.patch
git checkout master patch -p0 < diff.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment