How to use Local with github in a group environment without site breaking?

We will be utilizing Local to create sites in a team environment and i want to create everything in a github repo in order to track changes and be able to clone down the repo amongst the team so we can all work on certain things together. Ive tried testing this and although github does register all changes, when i clone the repo down or try to change the files into the new ones with all the changes Local simply gives me the generic green wp site without any updates showing even when im positive i updated the files into the new one. Any help would be greatly appreciated!

Welcome to the community @jperez !

This sounds like the database isn’t being pulled in. Using Git and Github to track changes to code is a great way to collaborate on file-level changes.

Because WordPress stores content within the database, you’ll need to figure out a way to sync the things that exist only within the database.

If you host on Flywheel or WP Engine, you can use Local Connect to pull down a site. This should get a copy of the site working in Local. From there, you can replace the files with your git repo, and periodically pull down just the Database using Connect.

Another option to sync just the database is to use a premium plugin like Migrate DB Pro to pull down the database as new content is added remotely.

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.