From 204b20191831ab74efcb16c9c2b2f75d1306852c Mon Sep 17 00:00:00 2001 From: Edgar Handal Date: Mon, 10 Mar 2025 23:50:27 -0500 Subject: [PATCH] git-restore: fix default to restore from staging (#15914) By default, "git restore" restores from the index, not from HEAD. --- pages/common/git-restore.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-restore.md b/pages/common/git-restore.md index 05375c5e1a..40926e3bf0 100644 --- a/pages/common/git-restore.md +++ b/pages/common/git-restore.md @@ -4,7 +4,7 @@ > See also `git checkout` and `git reset`. > More information: . -- 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}}`