Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

No way to delete a stack locally whose branches are deleted

オープン
#439 コメント 0 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
git, github, go
領域
cli

調査の方向性

gh stack unstack --local のエントリーポイントから始め、gh stack sync が stack のブランチを prune した後に発生する失敗を再現します。unstack が存在しないローカルブランチとリモートブランチをどのように処理するかを追跡し、両方の種類のブランチが削除された stack が失敗せずに削除されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

feature request topic: cli - other
Context

Our repo has the "Delete head on merge" option, which makes it so that when merging a stack from the GitHub website, the feature branches get deleted also.
Locally, I also ran gh stack sync which prompted me to prune the branches.

The stack remained for some reason (I see there's a related bug), so I tried to unstack it locally since it no longer existed on remote.

Issue / Feature request

I expected that gh stack unstack --local would destroy the stack even if the branches do not exist but it failed.

To clean my local repo, I had to re-create the branches in the stack with the same names and then unstack succeeded.

Is it possible to have unstack in the case where both the local & remote branches no longer exist to consider them pruned, skip them, and not fail?

主要言語
Go
スター
1.5k
フォーク
73
平均マージ
1日 8時間
マージ済み PR(30日)
7

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-stack のほかの issue

github/gh-stack の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。