Update unstage doc to clarify reset

This commit is contained in:
Zeff Morgan 2019-06-04 03:59:24 +00:00
parent 9a9c947b14
commit df2486b088
1 changed files with 2 additions and 2 deletions

View File

@ -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>