Just:
git rm --cached file [file ...]
Of course you’ll need to make sure the offending files are added to your .gitignore so they don’t get recommitted straight away
Just:
git rm --cached file [file ...]
Of course you’ll need to make sure the offending files are added to your .gitignore so they don’t get recommitted straight away