You can use the Pycharm terminal to do:
command: git status
this should show you whats tracked under the commit changes.
then to remove them the list of "changes to be commited"
command: git restore --staged <file>
This will unstage the file from being tracked.