add git restore --staged notes

This commit is contained in:
Marcello 2024-01-31 11:20:14 +01:00
parent 9b4728bfd7
commit 889777e916

View file

@ -251,6 +251,7 @@ It's generally recommended creating annotated tags so it's possible to have all
`git restore <file>`: discard uncommitted changes to file
`git restore --source <commit> <file>`: revert file to commit version
`git restore <deleted-file>`: recover deleted file if previously committed
`git restore --staged <file>`: unstage a file
`git rebase -i|--interactive`: modify (reword, edit, drop, squash, merge, ...) current branch commits
`git rebase -i|--interactive HEAD~<n>`: modify (reword, edit, drop, squash, merge, ...) *n* commits