Git: Undo Add File

By Xah Lee. Date: . Last updated: .

How to unadd a file?

If you added a file by mistake, you can unadd.

git reset FileName

unadd a file

git reset .

unadd all added files in current dir

git add, commit

git FAQ