Remove Files from Staging Before Committing

InstructorChris Achard

Share this video with your friends

Send Tweet

If you've added files to the staging area (the Index) accidentally - you can remove them using git reset.

We'll first add a file to staging, but then back it out with:

git reset HEAD filename

in order to pull it back to the working directory, so it doesn't end up in a commit when we don't want it to.