Possible Duplicate:
Undo git add before commit
When i was working on my project I accidently added files using the following command
git add file
I haven’t yet run
git commit.
How can I undo or remove these newly added files from the commit?
Please help.
git resetis a literally “undo” ofgit add– it removes the changes from staged area.