1
0
Fork 0
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:
Edgar Handal 2025-03-10 23:50:27 -05:00 committed by GitHub
parent a63bc95941
commit 204b201918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`