Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

gh stack CLI now supports git worktrees 🥞 You can manage stacks where each branch is in a separate worktree, while still taking advantages of things like cascading stack rebases

40,542 Aufrufe • vor 24 Tagen •via X (Twitter)

16 Kommentare

Profilbild von erKam 🅰️
erKam 🅰️vor 24 Tagen

@github Stacked PRs are addictive. Once you start splitting, you can't stop. My agent made 2000-line diffs the norm, and nobody enjoys reviewing those. So I split a big booking flow bug fix into 4 PRs: refactor, old bugs, shared service, UI fixes. Will be reviewing them on Monday calmy

Profilbild von John Rees
John Reesvor 23 Tagen

@github Oo nice! QQ. I've usually got several agents working in parallel, each in their own worktree in herdr. What happens if one of them runs a stack rebase while another agent is working on a different branch in the same stack?

Profilbild von Andrew Babbitt
Andrew Babbittvor 23 Tagen

@github How well does it work with the GH Copilot Desktop app and multiple threads / subagents? Did the stack skill also get an update as a part of this?

Profilbild von Kizuno18
Kizuno18vor 24 Tagen

@github worktrees are the ultimate blast-radius isolation for agents: each branch in a separate checkout eliminates git index lock contention. in our pipeline targeting brazil, isolated worktrees let parallel agents test schema changes without disturbing production state. huge win

Profilbild von Amit Ghadge
Amit Ghadgevor 23 Tagen

@github Manually resolve conflicts.

Profilbild von Sameen Karim
Sameen Karimvor 23 Tagen

@github Your agents can use the CLI. It’s a wrapper around git rebase

Profilbild von FrançaisFaché
FrançaisFachévor 23 Tagen

@github Gave a try. Same bullshit as before, a little bit more pollished.

Profilbild von Shekhar Palit 🇺🇸
Shekhar Palit 🇺🇸vor 23 Tagen

@github Please fix the CI bottleneck

Profilbild von Batuhan Cakir
Batuhan Cakirvor 23 Tagen

@github can we also put the whole stack in the merge queue ?

Profilbild von Sameen Karim
Sameen Karimvor 23 Tagen

@github Yes! We updated how stacks works with merge queue so it will always merge together in the same merge group

Profilbild von Batuhan Cakir
Batuhan Cakirvor 23 Tagen

@github oh that sounds really nice

Profilbild von Sudara Fernando
Sudara Fernandovor 23 Tagen

@github Have you guys thought about why we can’t merge the stack when 1 approval is needed even though all PRs in the stack are approved? It is a real blocker for us at the moment

Profilbild von Sameen Karim
Sameen Karimvor 23 Tagen

@github We’re rolling out a fix for this next week. Sorry it’s taking so long, we needed to change a lot of security-related code

Profilbild von Matthew
Matthewvor 24 Tagen

@github Yes!!!!

Profilbild von John Barker
John Barkervor 23 Tagen

@github Any plans on being able to merge a stack as a single squashed commit into your main branch?

Profilbild von Sameen Karim
Sameen Karimvor 23 Tagen

@github We discussed this and it would violate too many of our internal models unfortunately. Merging multiple PRs into one commit would cause issues with reverting PRs and associating approvals/rule evals to merge commits

Ähnliche Videos