I'm trying to configure my .gitignore file so that I don't track any of my log files. However, it's not working properly and I'm not sure what's wrong.
Right now, the directory structure looks like this:
project_name - logs - logfile1 - logfile2 - src - file1.py - file2.py - .git - .gitignore - __pycache__/ The contents of my .gitignore file are:
__pycache__/ ../logs/ logs/ ../logs/log* It's ignoring __pycache__ just fine, but Git is telling me that logs needs to be tracked.