qmetrics.net

Gh Stack

GitHub CLI extension for stacked pull requests

gh stack splits large changes into dependent branches, keeps them rebased, sets PR bases, and syncs stacked PRs on GitHub via the gh CLI.

Overview

GitHub Stacked PRs is a GitHub CLI extension that manages stacked branches and pull requests. Large features become a ordered chain of small PRs, each based on the branch below, so reviewers see isolated diffs while work still builds incrementally on trunk.

The tool automates branch creation, metadata tracking in a local gh-stack catalog under Git's common directory, cascading rebases, and submitting linked PRs to GitHub with correct base branches. Commands cover initializing a stack, adding layers, navigating up and down the stack, rebasing with conflict pause and resume, checking out remote stacks, and interactively modifying stack structure.

It supports git worktrees so branches in a stack can live in separate working directories, with coordinated rebases and modify operations across owners. Git rerere is enabled during init to remember conflict resolutions. Optional background checks can notify when a newer extension release exists, without auto-upgrading.

Installation requires GitHub CLI 2.0 or newer and Git 2.36 or newer. An installable skill helps AI coding agents use stacked PR workflows. The extension targets teams that want Graphite-style stacked reviews inside GitHub's native PR model.

Key features

  • Stack init add and navigation commands
  • Cascading rebase across stack layers
  • Submit linked PRs with correct bases
  • Local gh-stack metadata catalog
  • Worktree-aware rebase and modify
  • Interactive stack restructure UI
  • Remote stack fetch and checkout
  • Conflict pause with continue or abort

Use cases

  • Breaking large features into reviewable PRs
  • Keeping dependent branches rebased on trunk
  • Syncing stacked PRs with GitHub
  • Managing stacks across git worktrees
  • Agent-driven stacked branch workflows

Tags

Similar software

Lazygit

Terminal user interface for everyday Git workflows

Lazygit wraps common Git operations in a keyboard-driven terminal UI. You can stage partial changes, rebase, cherry-pick, and inspect history without memorizing fragile command sequences.

★ 84.1k⟳ 5 days agoMIT

Gitea

Self-hosted Git forge with CI/CD and packages

Gitea is an all-in-one software development service you can run on your own infrastructure. It combines Git hosting with issues, reviews, project boards, package registries, and Gitea Actions CI/CD.

★ 59.3k⟳ todayMIT
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Gogs

Self-hosted Git service with web collaboration tools

Gogs hosts Git repositories over SSH and HTTP(S) and adds issues, pull requests, wikis, and organization features through a browser UI.

★ 48k⟳ 2 days agoMIT

GitHub CLI

Official GitHub terminal client

GitHub CLI brings issues, pull requests, and other GitHub workflows to the terminal beside git. It works with GitHub.com, Enterprise Cloud, and supported Enterprise Server deployments.

★ 47.3k⟳ yesterdayMIT

Harness

End-to-end developer platform with SCM, CI/CD, and registries

Harness Open Source combines code hosting, automated DevOps pipelines, hosted development environments called Gitspaces, and artifact registries in one platform.

★ 39k⟳ yesterdayApache-2.0
Build & DeploymentSelf-hostable
Open Source Alternative to:GitHub

Husky

Lightweight native Git hooks for Node projects

Husky wires Git hooks so teams can lint commit messages, run tests, or check code on commit and push. It uses core.hooksPath, stays around two kilobytes gzipped, and supports macOS, Linux, and Windows.

★ 35.4k⟳ 8 months agoMIT