graphite

Manage git branches and stacked pull requests using the gt command suite.

Updated Mar 24, 2016
One-click install
npx skills add https://github.com/jonmast/dotfiles --skill graphite-jonmast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphite
Source: https://github.com/jonmast/dotfiles/tree/main/agents/skills/graphite
Command: npx skills add https://github.com/jonmast/dotfiles --skill graphite-jonmast

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the management of git branches and pull requests, providing a structured way to work with the git gt command, enabling the creation, navigation, and manipulation of git workflows with ease.

Core Features & Use Cases

  • Branch and PR Management: Offers commands for creating, modifying, and tracking branches and pull requests.
  • Stacked Pull Requests: Manages complex stacks of PRs for large projects, making it easier to handle multiple changesets.
  • Reordering and Reparenting: Allows for reordering branches in a stack and reparenting to the main branch.
  • Quick Navigation: Provides shortcuts to quickly move up or down the stack of branches.
  • Use Case: When working on a feature branch with multiple commits, use this Skill to streamline the process of creating, tracking, and merging changes into the main branch.

Quick Start

Use the graphite skill to create a new branch and start a new stack of pull requests.

Frequently Asked Questions about graphite

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

FAQPage Schema
How do I manage stacked pull requests in git?

Yes, you can reorder branches and reparent them to the main branch within a stack. This Skill provides commands to easily manipulate the stack structure, allowing you to reorganize commits and update dependencies during complex development workflows.

Do I need git worktrees configured to manage stacked commits?

Yes, git must be configured for worktrees to manage stacked commits and branches with this Skill. Worktrees allow you to handle multiple checked-out branches simultaneously, which is required for the underlying `gt` command suite to navigate and rebase stacks effectively.

What is the best way to track multiple git branches during code review?

Tracking multiple git branches during code review is best handled by structuring them as a stack. This Skill provides an interface to create, modify, and track branches and pull requests, streamlining the process of merging multiple changesets into the main branch.

How do I navigate up and down a branch stack quickly?

To navigate a branch stack quickly, you can use specific shortcuts provided by the `gt` command suite. This Skill enables quick movement up or down the stack of branches, allowing you to easily switch between changesets during development and review.

Can I rebase a stack of git branches without losing track of pull requests?

Rebasing a stack of git branches while tracking pull requests requires structured stack management. This Skill streamlines the rebasing process by maintaining the PR relationships and allowing you to reparent branches to the main branch without losing the stack context.