mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 11:51:19 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Print messages about the patched files:
|
||||
|
||||
`git apply --verbose {{path/to/file}}`
|
||||
`git apply {{[-v|--verbose]}} {{path/to/file}}`
|
||||
|
||||
- Apply and add the patched files to the index:
|
||||
|
||||
@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply a remote patch file:
|
||||
|
||||
`curl -L {{https://example.com/file.patch}} | git apply`
|
||||
`curl {{[-L|--location]}} {{https://example.com/file.patch}} | git apply`
|
||||
|
||||
- Output diffstat for the input and apply the patch:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Apply the patch in reverse:
|
||||
|
||||
`git apply --reverse {{path/to/file}}`
|
||||
`git apply {{[-R|--reverse]}} {{path/to/file}}`
|
||||
|
||||
- Store the patch result in the index without modifying the working tree:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user