mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-04-05 18:36:41 +00:00
add git restore --staged
notes
This commit is contained in:
parent
9b4728bfd7
commit
889777e916
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue