qmetrics.net

GitHub Stacked PRs

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

GitLens

Git visualization and workflow extension for VS Code

GitLens extends Visual Studio Code with blame, history, commit graph views, and Git workflows maintained by GitKraken. A free Community edition coexists with paid Pro capabilities.

  • Interactive Commit Graph
  • Inline blame and CodeLens
  • Branch and worktree management
TypeScriptDetails →
★ 10k⟳ todayMIT · open core

isomorphic-git

Pure JavaScript git client for Node and browsers

A JavaScript reimplementation of git that runs in Node.js and in the browser without native C++ dependencies. It reads and writes repositories, and can fetch from and push to remotes.

  • Clone and push without native modules
  • Same code in Node and browser
  • Pluggable file system and HTTP
JavaScriptWeb, CLIDetails →
★ 8.4k⟳ todayMIT

Neogit

Magit-inspired Git UI inside Neovim

Neogit brings an interactive Git interface to Neovim with popups for branch, commit, rebase, and stash workflows inspired by Magit.

  • Magit-style popup menus
  • Tab, split, and float layouts
  • Visual range cherry-picks
LuaDetails →
★ 5.7k⟳ todayMIT

GitPython

Python library for Git repository operations

GitPython lets Python programs work with Git repos at porcelain or plumbing level, often by wrapping the git executable.

  • Repository and object API
  • Porcelain and plumbing style access
  • Remotes and submodules
PythonWindowsDetails →
★ 5.2k⟳ 3 days agoBSD-3-Clause

nbdime

Content-aware Jupyter notebook diff and merge tools

nbdime compares and merges Jupyter notebooks with structure-aware logic instead of raw line diffs. It offers terminal and web-based commands and hooks into Git and Mercurial.

  • Structure-aware notebook diffs
  • Three-way notebook merge
  • Terminal and web diff viewers
TypeScriptWeb, CLIDetails →
★ 2.8k⟳ 5 months agoBSD-3-Clause · open core

GitHub Pull Requests

GitHub pull requests and issues inside VS Code

A Microsoft extension to browse, review, and manage GitHub pull requests and issues from Visual Studio Code, including GitHub Enterprise.

  • GitHub and Enterprise authentication
  • List and browse pull requests
  • In-editor PR review comments
TypeScriptDetails →
★ 2.6k⟳ todayMIT