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:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user