Efficient Drupal 11 upgrade with DDEV and git-worktree

Studio 2
Development
Advanced
Pierre-Paul Lefebvre

You start working on your Drupal 11 upgrade for your site, but you don't have the time to complete 100% before your boss calls you on Slack to talk about the next new great feature he wants on the site. This goes on like this for a few weeks. You end up switching from branch to branch all the time, dropping your DDEV database everytime you switch. You lose focus, you lose your configs that you forgot to export before switching to that new emergency.

DDEV and git-worktree won't fix the chaos in your organization, but it will help you work on both your Drupal 11 and Drupal 10 sites at the same time, without dropping your database every 15 minutes.