Update rewind-to-commit.md

Rewinds back to `3050fc0d3` but keeps changes in the working directory  --> it doesn't need `--hard`
This commit is contained in:
Liqiuyue
2021-08-10 11:28:35 +08:00
committed by GitHub
parent 1075bd2297
commit 9a15fff3e2

View File

@ -16,7 +16,7 @@ git reset [--hard] <commit>
``` ```
```shell ```shell
git reset --hard 3050fc0d3 git reset 3050fc0d3
# Rewinds back to `3050fc0d3` but keeps changes in the working directory # Rewinds back to `3050fc0d3` but keeps changes in the working directory
git reset --hard c0d30f305 git reset --hard c0d30f305