From 9a15fff3e25d27c1db16e535c06577325ec1c828 Mon Sep 17 00:00:00 2001 From: Liqiuyue <42227133+Liqiuyue9597@users.noreply.github.com> Date: Tue, 10 Aug 2021 11:28:35 +0800 Subject: [PATCH] Update rewind-to-commit.md Rewinds back to `3050fc0d3` but keeps changes in the working directory --> it doesn't need `--hard` --- snippets/rewind-to-commit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/rewind-to-commit.md b/snippets/rewind-to-commit.md index 283d8ee6a..0d379faa9 100644 --- a/snippets/rewind-to-commit.md +++ b/snippets/rewind-to-commit.md @@ -16,7 +16,7 @@ git reset [--hard] ``` ```shell -git reset --hard 3050fc0d3 +git reset 3050fc0d3 # Rewinds back to `3050fc0d3` but keeps changes in the working directory git reset --hard c0d30f305