1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:17:56 +01:00
tldr/pages/common/patch.md
2016-01-08 09:38:59 +01:00

318 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

  • Apply the reverse of a patch:

patch -R < {{patchfile}}.diff