Skip to content

Commit 8f0b0e5

Browse files
author
Kausar Mehmood
committed
Update git reset --hard note for clarity
1 parent cfee66f commit 8f0b0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ 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.
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.
8383
Calling `git reset` without an option is not dangerous - it only touches your staging area.
8484
=====
8585

0 commit comments

Comments
 (0)