mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 17:33:38 +02:00
commit
011da19d1c
1 changed files with 16 additions and 0 deletions
16
pages/common/patch.md
Normal file
16
pages/common/patch.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#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`
|
Loading…
Add table
Reference in a new issue