Created
August 8, 2013 08:08
-
-
Save anscii/6182597 to your computer and use it in GitHub Desktop.
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
git diff --no-prefix > patchfile | |
then apply the patch: | |
patch -p0 < patchfile | |
If you have an existing "git diff" patch file that was created without the "--no-prefix" option, you can apply that patch via: | |
patch -p1 < patchfile | |
this will ignore the default a/ b/ source prefixes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment