mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
16 lines
221 B
Markdown
16 lines
221 B
Markdown
![]() |
#patch
|
||
|
|
||
|
> Patch a file or files with a diff file.
|
||
|
|
||
|
- apply a patch
|
||
|
|
||
|
`patch < {{patchfile}}.diff`
|
||
|
|
||
|
- apply a patch to current directory
|
||
|
|
||
|
`patch -p1 < {{patchfile}}.diff`
|
||
|
|
||
|
- reverse a patch
|
||
|
|
||
|
`patch -R < {{patchfile}}.diff`
|