i want to unstage a file

This is the scenario you find yourself in. You staged a file (via git add), and realized that you don’t want that particular file staged for commit right now.

What do you do?

Fortunately, this is pretty simple, just enter:

git reset <file name>

And your file will be back in the unstaged state.