diff options
author | Zeff Morgan <zmorgan@gitlab.com> | 2019-06-04 03:59:24 +0000 |
---|---|---|
committer | Zeff Morgan <zmorgan@gitlab.com> | 2019-06-04 03:59:24 +0000 |
commit | df2486b0881ab49927eb8120bd39eb6d6ccacf83 (patch) | |
tree | 4e5d8936429764c8b45127166f241678adb83110 /doc/university | |
parent | 9a9c947b145e6a43ae49687aa398d1154d07a25b (diff) | |
download | gitlab-ce-df2486b0881ab49927eb8120bd39eb6d6ccacf83.tar.gz |
Update unstage doc to clarify reset62618-docs-feedback-unstage-page-needs-clarification
Diffstat (limited to 'doc/university')
-rw-r--r-- | doc/university/training/topics/unstage.md | 4 |
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> |