Version control systems are file-based. Since we do metadata driven development, we built our own metadata-based version control. How you keep local development environment and cloud development environment synchronized is shown in the following diagram.
And database synchronization is done by database refactoring.
When you run SQL on cloud and push it to VCS Server, your SQL will be run on VCS Server. Then if you pull that SQL from VCS Server, it will be run locally. That's how your local database schema and cloud database schema are synchronized.
Let's synchronize database scripts.