Created
August 14, 2013 19:20
-
-
Save agassner/6234552 to your computer and use it in GitHub Desktop.
patching with git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a patch | |
git diff --no-prefix > patchfile | |
# apply a patch | |
patch -p0 < patchfile | |
# apply a patch created without "--no-prefix" | |
patch -p1 < patchfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment