.gitignore file ignored directory
/web/uploads itself therefore its subdirectories and files
will be ignored automatically regardless the following negated pattern.
If you want to add
/web/uploads/ but ignore files in it,
.gitignore can be like:
# Next line tell git to add subdirectories back
Or if you just want to add the directory, no matter there is file or no,
then you don't need to touch
.gitignore, just add the
.gitkeep files, everything will work well.