diff options
author | Niels Bom <niels-bom-md@users.noreply.github.com> | 2015-08-17 12:43:51 +0300 |
---|---|---|
committer | Niels Bom <niels-bom-md@users.noreply.github.com> | 2015-08-17 12:43:51 +0300 |
commit | 5f027691f60696fe54ab6c93143f1c06162eae07 (patch) | |
tree | 4a2f7ed249fc50dbd29c962404a4051f7b888acb | |
parent | d132fa09ee0301ded7cfe74d27ba9d321a9306f3 (diff) |
Improve explanation on reset --hard.
-rw-r--r-- | basic/index.html | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/basic/index.html b/basic/index.html index fe98223..c422a0f 100644 --- a/basic/index.html +++ b/basic/index.html @@ -724,12 +724,13 @@ nothing to commit (working directory clean) <small>unstage files AND undo any changes in the working directory since last commit</small> </h4> - <p>The third option is to go <code>--hard</code> and make your working - 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 that are not in the index or that have not been committed will be lost.</p> - + <p>The third option is to go <code>--hard</code>. This command discards your staged changes and + the changes in your working directory. In other words: it resets your staging area and working + directory to the state they were in right after the given commit. This is the most + dangerous option and is not working directory safe. Any changes not committed will + be lost. + </p> + <pre> <b>$ git status</b> # On branch master |