Commit 5915dec6 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch '62618-docs-feedback-unstage-page-needs-clarification' into 'master'

Resolve "Docs feedback: unstage page needs clarification"

Closes #62618

See merge request gitlab-org/gitlab-ce!29113
parents 5ba84bbe df2486b0
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment