Skip to content

Commit 930625e

Browse files
authored
Merge pull request #676 from kausar007/master
Update git reset --hard note for clarity
2 parents cfee66f + 5700389 commit 930625e

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`, in this instance 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)