Use when creating a new branch or entering a worktree. Sets upstream immediately via `git branch --set-upstream-to=origin/<branch>` after first checkout.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Branch Upstream?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jleechanorg-branch-upstream)
---
name: branch-upstream
description: "Use when creating a new branch or entering a worktree. Sets upstream immediately via `git branch --set-upstream-to=origin/<branch>` after first checkout."
---
# Branch upstream tracking — always set after creation
After `git checkout -b` or entering a worktree: `git branch --set-upstream-to=origin/<branch> <branch>`. Don't wait for first push. Worktree branches never get upstream set automatically.