summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeff Morgan <zmorgan@gitlab.com>2019-06-04 03:59:24 +0000
committerZeff Morgan <zmorgan@gitlab.com>2019-06-04 03:59:24 +0000
commitdf2486b0881ab49927eb8120bd39eb6d6ccacf83 (patch)
tree4e5d8936429764c8b45127166f241678adb83110
parent9a9c947b145e6a43ae49687aa398d1154d07a25b (diff)
downloadgitlab-ce-62618-docs-feedback-unstage-page-needs-clarification.tar.gz
Update unstage doc to clarify reset62618-docs-feedback-unstage-page-needs-clarification
-rw-r--r--doc/university/training/topics/unstage.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/university/training/topics/unstage.md b/doc/university/training/topics/unstage.md
index da36a3218e5..c926f0b4888 100644
--- a/doc/university/training/topics/unstage.md
+++ b/doc/university/training/topics/unstage.md
@@ -8,13 +8,13 @@ comments: false
## Unstage
-- To remove files from stage use reset HEAD. Where HEAD is the last commit of the current branch.
+- To remove files from stage use reset HEAD where HEAD is the last commit of the current branch. This will unstage the file but maintain the modifications.
```bash
git reset HEAD <file>
```
-- This will unstage the file but maintain the modifications. To revert the file back to the state it was in before the changes we can use:
+- To revert the file back to the state it was in before the changes we can use:
```bash
git checkout -- <file>