Files
tldr/pages/common/patch.md
2014-10-28 20:27:51 +01:00

301 B

#patch

Patch a file (or files) with a diff file. Note that diff files contain both the target filenames and list of changes.

  • apply a patch

patch < {{patchfile}}.diff

  • apply a patch to current directory

patch -p1 < {{patchfile}}.diff

  • reverse a patch

patch -R < {{patchfile}}.diff