how to get back after add git code example
Example 1: git undo add
// undo add for one file
git reset <file>
// undo add for all files
git reset
Example 2: undo git add but keep changes
git reset -- FILE_NAME
// undo add for one file
git reset <file>
// undo add for all files
git reset
git reset -- FILE_NAME