Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Github stack does not persist across worktrees

Aperta
#459 1 commento 9 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, github, go
Ambito
cli, tooling

Direzione di ricerca

Inizia dal punto di ingresso gh stack init e traccia come viene memorizzata l’appartenenza locale allo stack quando $GIT_DIR punta a .git/worktrees/<name>/. Riproduci il comportamento tra un worktree principale e un worktree collegato, incluso worktree remove; il lavoro è completato quando l’appartenenza allo stack rimane disponibile aprendo il branch da un altro worktree.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug topic: cli - worktrees

When opening a branch in a worktree and running gh stack init, it does not keep track of the stack locally. gh-stack keeps stack membership in local state tied to the checkout where init ran. If I create a worktree & use gh-stack, the stack doesn't persist on my machine, even if I open the branch back in my main worktree. Inside a worktree, $GIT_DIR is .git/worktrees// — so worktree remove deletes the stack state with it

This is confusing & not obvious. Additionally, a modern LLM workflow may involve different sub-agents in different worktrees. This makes gh-stack worse than, say git-spice for this purpose, since I can't easily update my work if I checkout the branch on my main worktree.

The stack is stored remotely on Github, but THAT doesn't always work - seems like GitHub only records a stack for a chain of two or more PRs.

Lingua principale
Go
Stelle
1.5k
Fork
73
Merge medio
1g 8h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-stack

Tutte le issue di github/gh-stack

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.