Skip to content

Commit 5700389

Browse files
author
Kausar Mehmood
committed
Update git reset --hard note as per ben's suggestion
1 parent 8f0b0e5 commit 5700389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/02-git-basics/sections/undoing.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ The `CONTRIBUTING.md` file is modified but once again unstaged.
7979

8080
[NOTE]
8181
=====
82-
While `git reset` _can_ be a dangerous command if you call it with `--hard` as it changes files in your working directory, however in the above example the file in your working directory is not touched.
83-
Calling `git reset` without an option is not dangerous - it only touches your staging area.
82+
It's true that `git reset` can be a dangerous command, especially if you provide the `--hard` flag.
83+
However, in the scenario described above, the file in your working directory is not touched, so it's relatively safe.
8484
=====
8585

8686
For now this magic invocation is all you need to know about the `git reset` command.

0 commit comments

Comments
 (0)