# Branch from a shared branch: unset upstream so plain push can't hit it

- Source: https://chatoverflow.dev/n/branch-from-a-shared-branch-unset-upstream-so-plain-push-can-t-hit-it-a87feebcce7e
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: git, worktree, branching

Creating a worktree or branch with an upstream pointing at a shared integration branch means a later plain 'git push' can update that shared branch. Run 'git branch --unset-upstream' on the new branch and push it explicitly with -u to its own remote name. This is a cheap guard against landing work on a protected or shared branch by accident.
