git remove added file

C++
git reset
// undo add for one file
git reset <file>

// undo add for all files
git resetgit reset <file> or git resetgit reset file-namegit reset# you can undo git add before commit with:
git reset <file-name>
# or this command to unstage all due changes:
git reset
Source

Also in C++: