Skip to content
Back to skills

Branch Upstream

ASecurity

Use when creating a new branch or entering a worktree. Sets upstream immediately via `git branch --set-upstream-to=origin/<branch>` after first checkout.

  • 6 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 26, 2026
toolsgit

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill branch-upstream --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Branch Upstream?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Branch Upstream
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-branch-upstream/badge)](https://www.skillsdirectory.com/skills/jleechanorg-branch-upstream)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.