In trunk-based development, developers typically work on small changes directly in the main branch or on short-lived feature branches. The goal is to integrate changes to the main branch as frequently as possible to avoid large merge conflicts and integration issues.
Here's the general workflow:
- Update your local main branch with the latest changes from the remote main branch:
git checkout main
git pull origin main

