I am using Visual Studio Code. I am trying to ignore the file Python.py. I created a .gitignore file and I added the filename Python.py then saved my changes. The image can be seen below:
But when I type >git status it still seems to be tracking the file.