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
simplify unstack to only target the active stack (#74)
* rm arg from unstack so it only targets active stack
* fix typo
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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 checked 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`.
351
351
352
352
```sh
353
-
gh stack unstack [flags] [branch]
353
+
gh stack unstack [flags]
354
354
```
355
355
356
-
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.
356
+
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.
357
+
358
+
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.
357
359
358
360
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.
359
361
360
362
| Flag | Description |
361
363
|------|-------------|
362
364
|`--local`| Only delete the stack locally (keep it on GitHub) |
363
365
364
-
| Argument | Description |
365
-
|----------|-------------|
366
-
|`[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