Interview Prep/Git & GitHub/Branching Strategies and Releases

How do you enforce a branch naming convention like `feature/ABC-123-short-name`?

BeginnerScenarioBranching Strategies and Releases
Answer

Situation read → Convention only works when it is checked automatically.

What I'd do →

  1. Document the pattern in CONTRIBUTING.md.
  2. Add a push ruleset or branch-name rule (rulesets support "branch name pattern" restrictions) to reject non-matching names.
  3. Or a CI check on the PR head ref.
  4. Link tickets automatically using the ID from the branch name.

Why → Consistent names help tooling, such as Jira linking and release notes.

Interview tip → Do not over-engineer; PR titles matter more than branch names.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases