# Orchestrate stacked Git branches, sync safely, and ship pull requests in order

> Uses Git Town to keep a branch stack healthy by syncing with the main branch, rebasing dependent branches in order, opening or updating pull requests, and cleaning up after merge. Best when an agent needs repeatable multi-branch workflow control instead of improvising long git command chains.

- Skill: `agentskillexchange/orchestrate-stacked-git-branches-sync-safely-and-ship-pull-r` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/orchestrate-stacked-git-branches-sync-safely-and-ship-pull-r`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/orchestrate-stacked-git-branches-sync-safely-and-ship-pull-r/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/orchestrate-stacked-git-branches-sync-safely-and-ship-pull-r

---


# Orchestrate stacked Git branches, sync safely, and ship pull requests in order

Uses Git Town to keep a branch stack healthy by syncing with the main branch, rebasing dependent branches in order, opening or updating pull requests, and cleaning up after merge. Best when an agent needs repeatable multi-branch workflow control instead of improvising long git command chains.

## Prerequisites

Git CLI and a Git repository

## Installation

Basic usage or getting-started notes:
- run Git Town command after having resolved conflicts
- [skip](https://www.git-town.com/commands/skip.html) - resume the last run Git
- [config](https://www.git-town.com/commands/config.html) - display or update

- Source: https://github.com/git-town/git-town
- Extracted from upstream docs: https://raw.githubusercontent.com/git-town/git-town/HEAD/README.md

## Documentation

- https://www.git-town.com/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/orchestrate-stacked-git-branches-sync-safely-and-ship-pull-requests-in-order/)

