diff --git a/basic/index.html b/basic/index.html index 9a2f3d3..23455c8 100644 --- a/basic/index.html +++ b/basic/index.html @@ -612,7 +612,7 @@
First, you can use it to unstage something that has been @@ -691,7 +691,7 @@
The first thing git reset does is undo the last
@@ -721,11 +721,12 @@
The third option is to go --hard and make your working
- directory look like the index, unstage files and undo the last commit.
+ directory look like the index, unstage files and undo any changes made
+ since the last commit.
This is the most dangerous option and not working directory safe. Any
changes not in the index or have not been commited will be lost.
In the above example, while we had both changes ready to commit and
ready to stage, a git reset --hard wiped them out.
- On top of that, the last commit has been undone.
You can replace HEAD with a commit SHA-1 or another
parent reference to reset to that specific point.