How to fix warning: could not open directory, ignoring pattern in Git | DevErrors