gh-stack
GitHub Stacked PRs
Learn how gh-stack integrates skills to empower AI agents. Execute CLI commands non-interactively with typed exit codes and safety guardrails for automated environments.
Understanding the ClientOps Interface in gh-stack: How It Wraps GitHub API CallsDiscover the ClientOps interface in gh-stack, a Go abstraction that unifies and simplifies GitHub API calls for efficient stacked PR management and testing.
How gh-stack Implements File Locking for the Stack File (.git/gh-stack.lock)Learn how gh-stack implements file locking for .git/gh-stack.lock using advisory exclusive locks and retry logic to prevent concurrent modifications and ensure data integrity.
gh stack unstack --local vs Regular unstack: What's the Difference?Understand the gh stack unstack --local vs regular unstack difference. Learn when to use local-only removal versus coordinated GitHub and local updates.
How gh-stack Navigation Commands Work: up, down, top, bottom, and trunk ExplainedUnderstand gh-stack navigation commands like up, down, top, bottom, and trunk. Learn how they treat branches as a linear stack and skip merged branches.
gh stack sync vs rebase: Understanding the Difference in GitHub's gh-stackUnderstand the difference between gh stack sync and gh stack rebase. Learn how sync updates your remote stack while rebase rearranges local commits without network ops.
gh-stack config.Config Struct and Test Overrides: Complete Configuration GuideExplore gh-stack config.Config struct and test overrides to centralize runtime settings including I/O streams and service dependencies for deterministic testing. Learn configuration options now.
How gh-stack Handles Non-Interactive Terminals and CI Environmentsgh-stack ensures safe execution in CI by automatically disabling interactive prompts and TUI spinners when stdout is not a terminal. Learn how gh-stack handles non-interactive terminals.
Understanding gh-stack Internal Architecture: A Deep Dive into cmd/, internal/, and tui/Explore the gh-stack internal architecture: cmd for CLI, internal for core logic, and tui for interactive interfaces. Understand the separation of concerns in this Go codebase.
How gh-stack Fetches and Checks Out Remote Stacks from GitHub: A Complete Technical GuideLearn how gh-stack fetches and checks out remote stacks from GitHub. This guide details querying GitHub's API, reconciling local state, importing Git refs, and checking out branches.
gh stack link vs submit: Understanding the Two Ways to Manage Stacked PRsUnderstand the difference between gh stack link and gh stack submit. Learn how to manage stacked PRs on GitHub using your local stack file for efficient workflow.
How gh-stack Manages Stack Updates When Base Pull Requests Are Mergedgh-stack automatically manages stack updates when base PRs merge, rebasing downstream branches to keep your linear stack in sync. Learn how it works.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →