In my .gitignore file, I ignored a directory like this:
var
Then I realized that I want to track var/package and all its contents. So, I added that exception for gitignore. I tried many combinations, but decided it was logical, especially from the other discussions here .
!var/ var/* !var/package !var/package/ !var/package/*
But when new files are written to var/package , they are not detected. They are added if I use them on purpose, but not through regular procedures like git add .
Is there some kind of command I have to issue on reset .gitignore in order to finally get new gitignore instructions? Did I miss something?
source share