# Syncing Shared Branches

> Synchronizes a shared feature branch with its remote and resolves divergence. Use when a shared branch falls behind the trunk.

- Skill: `brokenrobot-xyz/syncing-shared-branches` (Agent Skill)
- Install (CLI): `npx skillmds@latest add brokenrobot-xyz/syncing-shared-branches`
- Raw SKILL.md: https://api.skillmd.com/api/skills/brokenrobot-xyz/syncing-shared-branches/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: brokenrobot-xyz (https://skillmd.com/u/brokenrobot-xyz)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/brokenrobot-xyz/syncing-shared-branches

---


# Sync a shared branch

## Steps

1. Fetch the remote and compare the local branch against the remote branch.
2. When the branches diverge, merge the remote branch into the local branch.
3. Push the result.

## Guardrail

The remote branch must never be force-pushed to, as the collaborator's commits would be
discarded without a warning.

