git-reset: clarify patch example and use long option (#6006)

This commit is contained in:
marchersimon
2021-05-28 13:30:39 +02:00
committed by GitHub
parent 404065adae
commit 9fe15f5609
4 changed files with 8 additions and 8 deletions

View File

@@ -12,9 +12,9 @@
`git reset {{path/to/file(s)}}`
- Unstage portions of a file:
- Interactively unstage portions of a file:
`git reset -p {{path/to/file}}`
`git reset --patch {{path/to/file}}`
- Undo the last commit, keeping its changes (and any further uncommitted changes) in the filesystem: