how to undo git add --all

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

// undo add for all files
git resetgit reset # Will unstage all the files you've added after your last commit
Source

Also in C++: