patching with git diff | Thomas Amsler
If you want to create a patch file via "git diff" that can be applied using "patch -p0 < patchfile" use the following command: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.
Read full article from patching with git diff | Thomas Amsler
No comments:
Post a Comment