http://stackoverflow.com/questions/348170/undo-git-add-before-commit
I mistakenly added files using the command
git add file
I have not yet run git commit
.
Is there a way to undo this or remove these files from the commit?
You want:
git rm --cached <added_file_to_undo>