1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 19:42:08 +02:00
tldr/pages/common/patch.md
2015-10-23 08:02:34 +08:00

16 lines
315 B
Markdown

# 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`