I have a Drupal 8 installation where the sync directory is defined in ‘settings.php’ by
$config_directories['sync'] = 'sites/default/files/_private/config/sync';
In my ‘.gitignore’ file (inspired from some Drupal 8 template), i have this:
# Ignore paths that may contain user-generated content /web/sites/*/files
witch exclude (among other things) the configuration files exported with Drush in ‘sites/default/files/_private/config/sync’.
I tried various solutions to include the ‘sync’ directory which is deeply nested under ‘/web/sites/*/files’ but without success…
How can I do that?