From 889777e91609dca87ab31d5454f50ae5fcfdde3b Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Wed, 31 Jan 2024 11:20:14 +0100 Subject: [PATCH] add `git restore --staged` notes --- docs/misc/git.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/misc/git.md b/docs/misc/git.md index 24451c1..98123a6 100644 --- a/docs/misc/git.md +++ b/docs/misc/git.md @@ -251,6 +251,7 @@ It's generally recommended creating annotated tags so it's possible to have all `git restore `: discard uncommitted changes to file `git restore --source `: revert file to commit version `git restore `: recover deleted file if previously committed +`git restore --staged `: unstage a file `git rebase -i|--interactive`: modify (reword, edit, drop, squash, merge, ...) current branch commits `git rebase -i|--interactive HEAD~`: modify (reword, edit, drop, squash, merge, ...) *n* commits