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