mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 20:35:25 +02:00
git-restore: fix default to restore from staging (#15914)
By default, "git restore" restores from the index, not from HEAD.
This commit is contained in:
parent
a63bc95941
commit
204b201918
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
> See also `git checkout` and `git reset`.
|
||||
> More information: <https://git-scm.com/docs/git-restore>.
|
||||
|
||||
- Restore an unstaged file to the version of the current commit (HEAD):
|
||||
- Restore an unstaged file to the staged version:
|
||||
|
||||
`git restore {{path/to/file}}`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue