mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 06:57:55 +01:00
315 B
315 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