restack

Merge parent branch commits into child branches in a git stack.

213|13|Updated Aug 7, 2025
One-click install
npx skills add https://github.com/imbue-ai/sculptor --skill restack-imbue-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: restack
Source: https://github.com/imbue-ai/sculptor/tree/main/sculptor/sculptor-experimental/skills/restack
Command: npx skills add https://github.com/imbue-ai/sculptor --skill restack-imbue-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of propagating changes made in a base branch to its stacked children branches in a git repository, streamlining the process of updating dependent branches with the latest changes.

Core Features & Use Cases

  • Propagate Changes: Merge the updates from the base branch to all its stacked child branches.
  • Merge-Based Propagation: Avoids rewriting history by merging changes, maintaining commit integrity.
  • Use Case: Ideal for scenarios where changes made in one branch should automatically flow into the dependent branches of a stack, like after fixing a bug on a base branch that affects derived branches.

Quick Start

Run the restack command with no arguments to merge the current branch's changes into its child branches.

Frequently Asked Questions about restack

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

FAQPage Schema
How do I propagate changes from a base branch to stacked child branches in git?

Propagating changes to stacked branches is automated by merging commits from a parent branch into its child branches. This ensures all branches in a git stack receive the latest updates from the base branch without rewriting history.

What is the best way to update dependent branches after fixing a bug on the base branch?

The best way to update dependent branches is using merge-based propagation. It merges changes from the base branch into stacked children, maintaining commit integrity and ensuring derived branches have the bug fix without rewriting history.

Do I need the sculpt CLI to automate branch merging in a git stack?

Yes, you need the sculpt CLI and access to the git repository. The automation requires both to successfully merge commits from the parent branch into its stacked child branches.

Does merge-based change propagation rewrite git history?

No, merge-based change propagation avoids rewriting history. It merges updates from the base branch into stacked child branches, maintaining commit integrity while ensuring all branches have the latest changes.

How do I start merging commits into child branches using restack?

To start merging commits, run the restack command with no arguments. This initiates the process of merging the current branch's changes into its child branches within the git stack.