mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 16:02:10 +02:00

* Applying the snake_case convention throughout the repo - Also removing the file extension where not needed - Adding {{ }} on a few old pages * Addressing concerns - Added {{ }} where they were missed out - Removed spaces inside {{ }} - Reverting "file" to "filename" to make it clearer * Fixing the comments on nc page
16 lines
321 B
Markdown
16 lines
321 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 < {{patch_file}}.diff`
|
|
|
|
- Apply a patch to current directory:
|
|
|
|
`patch -p1 < {{patch_file}}.diff`
|
|
|
|
- Apply the reverse of a patch:
|
|
|
|
`patch -R < {{patch_file}}.diff`
|