If you’ve staged more files than you intended with a ‘git add .’, if you haven’t committed yet you can selectively unstage files with:
git rm --cached path/filename
If you want to unstage multiple files in a folder, use the recursive flag
git rm --cached -r foldername/