How to fix warning: Negated pattern '!file.txt' is not applied because parent directory is ignored in Git | DevErrors