How a new branch gets its config, migrations, and functions

What runs when you create a branch: which settings are copied, where your migrations and functions come from, and what order the steps run in.

Sources