git add and remove
git add <file> git reset <file>
delete add git
git rm --cached <added_file_to_undo>
Source: stackoverflow.com
git add <file> git reset <file>
git rm --cached <added_file_to_undo>