branch-pusher

Push Git branches to remote repositories with upstream tracking and safety checks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/fractary/claude-plugins --skill branch-pusher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: branch-pusher
Source: https://github.com/fractary/claude-plugins/tree/main/plugins/repo/skills/branch-pusher
Command: npx skills add https://github.com/fractary/claude-plugins --skill branch-pusher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, fractary-cli.

What problem does it solve?

This Skill pushes branches to a remote repository with safety checks, upstream tracking, and force-with-lease handling.

Core Features & Use Cases

  • Upstream tracking: Optional upstream creation
  • Protected branches: Warn before pushing to protected branches
  • Force-with-lease: Safe force push when needed

Quick Start

Push the current branch to origin with upstream tracking.

Frequently Asked Questions about branch-pusher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I push a Git branch safely to a remote repository?

Push a Git branch safely by using upstream tracking and force-with-lease protection. This Skill automates branch pushes across Git platforms (GitHub, GitLab, Bitbucket) with authentication validation, upstream creation, and protected-branch checks to prevent accidental overwrites.

What is force-with-lease and when should I use it instead of force push?

Force-with-lease is a safe force push that verifies the remote branch hasn't changed before overwriting. Use it when you need to rewrite history locally but want protection against losing upstream commits—this Skill applies force-with-lease automatically in push workflows.

Can I push to protected branches without warnings?

This Skill warns before pushing to protected branches, giving you visibility into branch protection policies. It validates platform-specific protections across GitHub, GitLab, and Bitbucket so you can confirm intent before the push executes.

How do I set up upstream tracking when pushing a branch?

Upstream tracking links your local branch to a remote branch automatically. This Skill offers optional upstream creation during push, eliminating manual tracking setup and simplifying multi-branch workflows.

Does this work with GitHub, GitLab, and Bitbucket?

Yes, this Skill applies across Git platforms—GitHub, GitLab, and Bitbucket. It delegates to platform-specific source-control handlers to execute, verify, and report push outcomes with consistent safety checks.