# Git in Action #6

We can reset staged files from stage index to exclude them from the next commit. Meaning even though the reset  file will no longer be in staged index but changes the file will not be lost. Git will consider that file as a tracked file which has some changed content. So git will expect you to add that file in the stage index.  Basically **git reset** is the exact reverse action of **git add**.

```
git reset -- <filename>
``` 

> Note: **git rm** has different behavior. It makes the file to be untracked. Meaning **git status** will ask you to add the file to start tracking the changes and if you commit after executing **git rm** the file in repository will be physically deleted. Basically with **git rm** we are asking git to delete the file from repository for more details [see](#)

[Next Section](https://simplekit.hashnode.dev/git-in-action-7)
