graphite-cli
Installation
SKILL.md
Graphite CLI Guide
This skill provides procedural knowledge for working with the Graphite command-line interface (CLI). It covers the entire lifecycle of creating and managing stacked pull requests, from initial setup to advanced stack manipulation.
When to Use This Skill
Activate this skill when a user's request involves using the gt command, managing stacked pull requests, or inquiring about the Graphite workflow. It is designed to handle tasks such as creating branches, submitting PRs, synchronizing with the trunk branch, and modifying the structure of a stack.
Core Concepts
- Stack: A series of small, incremental, and dependent branches. Each branch is a distinct PR, building on the previous one.
- Trunk: The primary branch of the repository (usually
mainormaster) from which all stacks originate and into which they are eventually merged.
I. Initial Setup
To begin using Graphite in a git repository, it must be initialized.