0

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:

enter image description here

But when I type >git status it still seems to be tracking the file.

HamidBee
  • 187
  • 1
  • 7

1 Answers1

-1

It's still being tracked because you committed the file previously.

To fix this, use git rm like so:

git rm --cached -r Python.py
Spectric
  • 30,714
  • 6
  • 20
  • 43