Trunk Based Development Practice
- Main Branch Focus: Development happens on the main branch, not long-lived feature branches.
- Frequent & Small Commits: Push small, incremental changes regularly to the main branch.
- Automation is Key: Automated tests run on every commit (CI) to ensure quality.
- Pull Requests (Optional): Can be used for code review before merging to the main branch.
- Always Deployable: The main branch should always be ready for deployment.
Benefits:
- Faster integration and deployments.
- Less merge conflicts.
- Improved code stability.
- Better team visibility into the codebase.