git undo add

Shell
git reset <file> or git resethttps://guide.freecodecamp.org/miscellaneous/how-to-undo-a-git-add/// undo add for one file
git reset <file>

// undo add for all files
git reset
Source

Also in Shell: