What are the risks of keeping a feature branch open for several weeks, and how does this impact the eventual merge process?

Last updated 6 July 2026

  • A long-lived branch drifts from main: conflicts pile up and your code targets outdated APIs, schemas, or dependencies.

  • Bugs and design mismatches surface only at merge time, and the huge resulting pull request is hard to review well.

  • Mitigate by regularly running git merge or git rebase from main, and prefer small, short-lived branches (continuous integration).

  • https://beyond.minimumcd.org/docs/anti-patterns/branching-integration/long-lived-feature-branches/
  • https://www.stxnext.com/blog/escape-merge-hell-why-i-prefer-trunk-based-development-over-feature-branching-and-gitflow
  • https://kianoosh.dev/posts/2026-07-28-merge-hell-batch-size/
  • https://www.kevinberridge.com/posts/20250126-long-lived-feature-branches
  • https://groengaard.dev/blog/avoiding-long-lived-feature-branches
  • https://medium.com/@ruzal.sth8888/overcome-merge-hell-with-trunk-based-development-and-continuous-integration-ecc1d4a530fe
  • https://docs.aws.amazon.com/wellarchitected/latest/devops-guidance/dl.scm.2-keep-feature-branches-short-lived.html
  • https://martinfowler.com/articles/continuousIntegration.html
All Git interview questions