Why Can't I add error logs and cache files to .gitignore ?

Hi

I added the logs.log and cache folder but it still exist when I pushed files to Github Why ?

Cheers.

tim

There are two files tracked in the cache folder. Otherwise they are all ignored by .gitignore.
https://github.com/litecart/litecart/tree/2.3.1/public_html/cache

Same goes for logs/ directory.
https://github.com/litecart/litecart/tree/dev/public_html/logs

These are the lines ignoring the contents of the directories
https://github.com/litecart/litecart/blob/2.3.1/.gitignore#L5

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub