Skip to content

Commit 25eab6e

Browse files
committed
Merge pull request #101 from niels-bom-md/gh-pages
Fixing grammar and typo. Also is more explicit about what reset --hard does
2 parents 64707c0 + 1043ad7 commit 25eab6e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

basic/index.html

+7-6
Original file line numberDiff line numberDiff line change
@@ -724,12 +724,13 @@ <h4 id="reset-hard">
724724
<small>unstage files AND undo any changes in the working directory since last commit</small>
725725
</h4>
726726

727-
<p>The third option is to go <code>--hard</code> and make your working
728-
directory look like the index, unstage files and undo any changes made
729-
since the last commit.
730-
This is the most dangerous option and not working directory safe. Any
731-
changes not in the index or have not been commited will be lost.</p>
732-
727+
<p>The third option is to go <code>--hard</code>. This command discards your staged changes and
728+
the changes in your working directory. In other words: it resets your staging area and working
729+
directory to the state they were in at the given commit. This is the most
730+
dangerous option and is not working directory safe. Any changes not committed will
731+
be lost.
732+
</p>
733+
733734
<pre>
734735
<b>$ git status</b>
735736
# On branch master

0 commit comments

Comments
 (0)