What are the pros and cons of requiring a linear history?
IntermediateProductionBranch protection, rulesets, CODEOWNERS and review at scale
Answer
Pros: simple git log, easy bisect and straightforward reverts. Cons: it forbids merge commits, so release branches that merge forward must use rebase or squash and cherry-pick, and rebased histories lose the true merge context. It pairs naturally with squash-only repos.
More on Branch protection, rulesets, CODEOWNERS and review at scale
What branch protection settings do you enable on `main` by default?BeginnerWhy do rulesets win over classic branch protection for an organisation?IntermediateHow do you roll out a new org-wide ruleset without breaking 300 repos?AdvancedHow do you protect release tags from being moved or deleted?IntermediateHow do you structure CODEOWNERS for a large org?IntermediateCODEOWNERS says three teams own a path but PRs stall waiting for any one of them. How do you fix it?Advanced