I have some folders inside of /storage/app/public that I need git to commit to the repository because these files need to be accessed by authenticated users. I have a subfolder under public called products which has 3 sub folders: datasheets, images, and instructions. The files inside of these folders are the files I need git to track and commit to the repo.
It looks like the project level .gitignore has a line "/public/storage" which I assume ignores all of my folders due to the storage symlink. Inside of the /storage/app/public folder there is also a .gitignore file with two lines
*
!.gitignore
I tried adding
!/products/** to this lower level .gitignore, but I must be missing something? Maybe the project level git takes precedence? How do I get git to track and commit the folders I want under storage, but ignore everything else?