Problem Statement
Your team enforces a linear history on main. Propose a branch policy and CLI steps to satisfy it.
Explanation
Policy: feature branches rebase onto latest main; PRs merge with squash or rebase-merge; disallow merge commits on main. Steps: `git fetch`, `git rebase origin/main`, resolve, push with `--force-with-lease`, then squash-merge PR.
Practice Sets
This question appears in the following practice sets:
