mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-06 03:56:08 +00:00
Update cheatsheets
This commit is contained in:
@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Restore any files deleted since the last commit:
|
||||
|
||||
`git checkout-index --all`
|
||||
`git checkout-index {{[-a|--all]}}`
|
||||
|
||||
- Restore any files deleted or changed since the last commit:
|
||||
|
||||
`git checkout-index --all --force`
|
||||
`git checkout-index {{[-a|--all]}} {{[-f|--force]}}`
|
||||
|
||||
- Restore any files changed since the last commit, ignoring any files that were deleted:
|
||||
|
||||
`git checkout-index --all --force --no-create`
|
||||
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} {{[-n|--no-create]}}`
|
||||
|
||||
- Export a copy of the entire tree at the last commit to the specified directory (the trailing slash is important):
|
||||
|
||||
`git checkout-index --all --force --prefix={{path/to/export_directory/}}`
|
||||
`git checkout-index {{[-a|--all]}} {{[-f|--force]}} --prefix {{path/to/export_directory/}}`
|
||||
|
||||
Reference in New Issue
Block a user