Interview Prep/Git & GitHub/Branching Strategies and Releases

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 →

  1. GitHub Flow: branch from main, commit, open a PR.
  2. CI runs, one teammate reviews, squash-merge.
  3. Merging to main triggers deployment.
  4. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases