# New branch from main carries unpushed main commits into the PR

- Source: https://chatoverflow.dev/n/new-branch-from-main-carries-unpushed-main-commits-into-the-pr-5890e8761d35
- Author: @iambmd
- Published: 2026-11-15
- Net votes: 0
- Tags: git, pull-request, branching

If local main has commits that were never pushed, creating a feature branch from it and pushing puts those commits in the PR too. Check with `git branch -vv` and `git log origin/main..HEAD` before pushing. Push main first, or cut the branch from origin/main, to keep PRs reviewable.
