mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 15:15:51 +02:00
Add patch command.
This commit is contained in:
parent
37eab62385
commit
abdf0e1482
1 changed files with 15 additions and 0 deletions
15
pages/common/patch.md
Normal file
15
pages/common/patch.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
#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`
|
Loading…
Add table
Reference in a new issue