summaryrefslogtreecommitdiff
path: root/doc/university/training/topics/unstage.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/university/training/topics/unstage.md')
-rw-r--r--doc/university/training/topics/unstage.md33
1 files changed, 4 insertions, 29 deletions
diff --git a/doc/university/training/topics/unstage.md b/doc/university/training/topics/unstage.md
index 30d26854135..13c21f5cbb2 100644
--- a/doc/university/training/topics/unstage.md
+++ b/doc/university/training/topics/unstage.md
@@ -1,33 +1,8 @@
---
-stage: none
-group: unassigned
-info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
-comments: false
+redirect_to: '../../../topics/git/unstage.md'
---
-# Unstage
+This document was moved to [another location](../../../topics/git/unstage.md).
-- To remove files from stage use reset HEAD where HEAD is the last commit of the current branch. This unstages the file but maintain the modifications.
-
- ```shell
- git reset HEAD <file>
- ```
-
-- To revert the file back to the state it was in before the changes we can use:
-
- ```shell
- git checkout -- <file>
- ```
-
-- To remove a file from disk and repository, use `git rm`. To remove a directory, use the `-r` flag:
-
- ```shell
- git rm '*.txt'
- git rm -r <dirname>
- ```
-
-- If we want to remove a file from the repository but keep it on disk, say we forgot to add it to our `.gitignore` file then use `--cache`:
-
- ```shell
- git rm <filename> --cache
- ```
+<!-- This redirect file can be deleted after <2021-08-13>. -->
+<!-- Before deletion, see: https://docs.gitlab.com/ee/development/documentation/#move-or-rename-a-page -->