reverd an add . git code example
Example 1: how to undo git add --all
git reset # Will unstage all the files you've added after your last commit
Example 2: undo git add but keep changes
git reset -- FILE_NAME
git reset # Will unstage all the files you've added after your last commit
git reset -- FILE_NAME