How can my client apply patch created by
git diff
without git installed? I have tried to use patch
command but it always asks file name to patch.
Answer:
1. git diff --no-prefix > patchfile, patch -p0 < patchfile
2. git apply file.diff
3. git diff > patchfile, patch -p1 < patchfile
3. git diff > patchfile, patch -p1 < patchfile
No comments:
Post a Comment