# Remove staged files

> If you have added files using git add . and you want to remove a single file then use this: Or if you want to remove all the staged files then use:

- Canonical: https://preview.arshadmehmood.com/today-i-learned/git/remove-staged-files/
- Section: git
- Author: Arshad Mehmood

If you have added files using `git add .`  and you want to remove a single file then use this:

```
git reset filename.txt
```

Or if you want to remove all the staged files then use:

```
git reset
```

