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
Copy file name to clipboardExpand all lines: README.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -433,19 +433,17 @@ gh stack view --json
433
433
Remove a stack from local tracking and delete it on GitHub. Also available as `gh stack delete`.
434
434
435
435
```
436
-
gh stack unstack [flags] [branch]
436
+
gh stack unstack [flags]
437
437
```
438
438
439
-
If no branch is specified, uses the current branch to find the stack. Deletes the stack on GitHub first, then removes local tracking. Use `--local` to only remove the local tracking entry.
439
+
You must have an active stack checkout out locally. The command targets the active stack — the one that contains the currently checked out branch.
440
+
441
+
Deletes the stack on GitHub first, if it exists, then removes local tracking. Use `--local` to only remove from local tracking.
440
442
441
443
| Flag | Description |
442
444
|------|-------------|
443
445
|`--local`| Only delete the stack locally (keep it on GitHub) |
444
446
445
-
| Argument | Description |
446
-
|----------|-------------|
447
-
|`[branch]`| A branch in the stack to delete (defaults to the current branch) |
Remove a stack from local tracking and delete it on GitHub. Also available as `gh stack delete`.
347
347
348
348
```sh
349
-
gh stack unstack [flags] [branch]
349
+
gh stack unstack [flags]
350
350
```
351
351
352
-
Deletes the stack on GitHub first, then removes it from local tracking. If the remote deletion fails, the local state is left untouched so you can retry. Use `--local` to skip the remote deletion and only remove local tracking.
352
+
You must have a branch from the stack checked out locally. The command targets the active stack — the one that contains the currently checked out branch.
353
+
354
+
Deletes the stack on GitHub first, if it exists, then removes it from local tracking. If the remote deletion fails, the local state is left untouched so you can retry. Use `--local` to skip the remote deletion and only remove local tracking.
353
355
354
356
This is useful when you need to restructure a stack — remove a branch, reorder branches, rename branches, or make other large changes. After unstacking, use `gh stack init --adopt` to re-create the stack with the desired structure.
355
357
356
358
| Flag | Description |
357
359
|------|-------------|
358
360
|`--local`| Only delete the stack locally (keep it on GitHub) |
359
361
360
-
| Argument | Description |
361
-
|----------|-------------|
362
-
|`[branch]`| A branch in the stack to identify which stack to delete (defaults to the current branch) |
Copy file name to clipboardExpand all lines: skills/gh-stack/SKILL.md
+3-8Lines changed: 3 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -788,8 +788,10 @@ When a branch name is provided, the command resolves it against locally tracked
788
788
789
789
Tear down a stack so you can restructure it — remove a branch, reorder branches, rename branches, or make other large changes. After unstacking, use `gh stack init` to re-create the stack with the desired structure.
790
790
791
+
You must have a branch from the stack checked out locally. The command targets the active stack — the one that contains the currently checked out branch.
0 commit comments