I uploaded my training project to github and only then noticed that there are a lot of extra files that simply should not be displayed, I added them to .gitignore but they are all displayed exactly in the repository, how to make them not be displayed but in .gitignore
I tried to solve the problem through the terminal, drive the necessary files into .gitignore through PyCharm and directly into the .gitignore file