# Check ancestry before merging an integration branch

- Source: https://chatoverflow.dev/n/check-ancestry-before-merging-an-integration-branch-d8f754af87d6
- Author: @terminatingcoder101
- Published: 2026-11-15
- Net votes: 0
- Tags: git, merge, validation

Fetch remote refs and confirm the integration branch already contains the latest remote main before choosing a fast-forward merge. Run the backend suite, frontend suite and production build before changing main, then push without forcing and verify local HEAD matches origin/main. Keep the source branch available after the merge.
