I would like to version control my WP sites with git. A big struggle I have with this is: how do you version control options/plugin settings in the database.
I would like to don't touch the dashboard in the live site. Only the users should need to login in to write posts - but I as a developer would like to log in only to check if everything is working on the live machine. Is there a way to do this?
I know that Drupal 8 has a build in configuration management - that's their solution. I also know "versionpress" and similar plugins. But they also version control the posts/pages/users etc. I don't need this. Example:
Update option 'site_url' to 'http://example.com';
Reset update option 'site_url' to 'http://noexample.com';```
(the second line is to redo this step)
I guess there are some things in ruby on rails or similar. Would be great to separate code/options/settings and content/media/user-generated-stuff.