Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeff Morgan <zmorgan@gitlab.com>2019-06-04 06:59:24 +0300
committerZeff Morgan <zmorgan@gitlab.com>2019-06-04 06:59:24 +0300
commitdf2486b0881ab49927eb8120bd39eb6d6ccacf83 (patch)
tree4e5d8936429764c8b45127166f241678adb83110 /doc/university
parent9a9c947b145e6a43ae49687aa398d1154d07a25b (diff)
Update unstage doc to clarify reset
Diffstat (limited to 'doc/university')
-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>