mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 07:51:36 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply a patch to a specific file:
|
||||
|
||||
`patch {{path/to/file}} < {{patch.diff}}`
|
||||
`patch < {{patch.diff}} {{path/to/file}}`
|
||||
|
||||
- Patch a file writing the result to a different file:
|
||||
|
||||
`patch {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}} < {{patch.diff}}`
|
||||
`patch < {{patch.diff}} {{path/to/input_file}} {{[-o|--output]}} {{path/to/output_file}}`
|
||||
|
||||
- Apply a patch to the current directory:
|
||||
|
||||
`patch {{[-p|--strip]}} 1 < {{patch.diff}}`
|
||||
`patch < {{patch.diff}} {{[-p|--strip]}} 1`
|
||||
|
||||
- Apply the reverse of a patch:
|
||||
|
||||
`patch {{[-R|--reverse]}} < {{patch.diff}}`
|
||||
`patch < {{patch.diff}} {{[-R|--reverse]}}`
|
||||
|
||||
Reference in New Issue
Block a user