I would like to install/manage Drupal with Git, Drush, and configuration synchronization.
Should I add
vendor/ into the .gitignore so that instead of pushing/pulling core I simply update core on prod/dev and synchronize configuration only?
This way I could potentially manage a Drupal site with few repositories:
- Repository for configurations
- Repository for a custom theme
- Repository for custom modules
When updating a module, this would be my workflow.
drush config-export to-prod
drush config-import to-prod
I ask because it doesn't seem to make sense that I have to push/pull all of Drupal 8 with every update.