File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -724,12 +724,13 @@ <h4 id="reset-hard">
724
724
< small > unstage files AND undo any changes in the working directory since last commit</ small >
725
725
</ h4 >
726
726
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
+
733
734
< pre >
734
735
< b > $ git status</ b >
735
736
# On branch master
You can’t perform that action at this time.
0 commit comments