You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 329aef4
Browse filesBrowse the repository at this point in the historyBrowse files
checkout now interprets a bare integer as a stack number first (the
identifier shown in the github.com stack UI), falling back to a locally
tracked PR number, then a PR number discovered from GitHub, then a branch
name. A new checkoutStackByNumber resolves the stack via GetStack and
checks out its top-most unmerged branch; the reconcile/import logic is
shared with the PR-number path.
unstack gains an optional <stack-number> positional argument to unstack a
specific locally tracked stack instead of the current one.
Copilot-Session: 03673c26-a245-42da-93ed-dfcebc92a740
Long: "Remove the current active stack from local tracking and delete it on GitHub. Use --local to only remove local tracking. Full unstack is blocked when every pull request is queued for merge, merging, or already merged",
25
-
Example: ` # Delete the stack locally and on GitHub
25
+
Short: "Remove a stack locally and on GitHub",
26
+
Long: `Remove a stack from local tracking and unstack it on GitHub.
27
+
28
+
With no argument, the current active stack is used. Provide a stack number (the
29
+
identifier shown in the github.com stack UI) to unstack a specific locally
30
+
tracked stack instead. Use --local to only remove local tracking.
31
+
32
+
GitHub decides which pull requests can be unstacked: PRs that are queued for
33
+
merge or have auto-merge enabled are left stacked. When some pull requests
34
+
remain stacked, local tracking is kept.`,
35
+
Example: ` # Unstack the current stack locally and on GitHub
26
36
$ gh stack unstack
27
37
38
+
# Unstack a specific stack by its stack number
39
+
$ gh stack unstack 7
40
+
28
41
# Only remove local tracking (keep the stack on GitHub)
0 commit comments