A team of four builds a web app deployed from `main`. Which simple workflow do you use?
BeginnerScenarioBranching Strategies and Releases
Answer
Situation read → A small team needs minimal ceremony.
What I'd do →
- GitHub Flow: branch from
main, commit, open a PR. - CI runs, one teammate reviews, squash-merge.
- Merging to
maintriggers deployment. - Protect
main(PR required, checks required, no force-push).
Why → Few rules, always a deployable main.
Interview tip → It is trunk-based development with PRs as the gate.
More on Branching Strategies and Releases
An eight-person team deploys several times a day. Which branching strategy do you recommend?IntermediateWhen would you choose GitFlow over trunk-based development?IntermediateIn trunk-based development, a feature will take three weeks. How do you merge it daily without exposing it?IntermediateYou are cutting a release. How do you manage the release branch and late fixes?IntermediateShould releases use lightweight or annotated tags?BeginnerA release tag was placed on the wrong commit and has been published. What do you do?Intermediate