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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -418,6 +418,7 @@ gh stack up [n] # Move up n branches (default 1)
418
418
gh stack down [n] # Move down n branches (default 1)
419
419
gh stack top # Jump to the top of the stack
420
420
gh stack bottom # Jump to the bottom of the stack
421
+
gh stack switch # Interactively pick a branch to switch to
421
422
```
422
423
423
424
Navigation commands clamp to the bounds of the stack — moving up from the top or down from the bottom is a no-op with a message. If you're on the trunk branch, `up` moves to the first stack branch.
@@ -430,6 +431,7 @@ gh stack up 3 # move up three layers
Copy file name to clipboardExpand all lines: docs/src/content/docs/reference/cli.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,6 +410,30 @@ gh stack bottom
410
410
411
411
Checks out the branch closest to the trunk.
412
412
413
+
### `gh stack switch`
414
+
415
+
Interactively switch to another branch in the stack.
416
+
417
+
```sh
418
+
gh stack switch
419
+
```
420
+
421
+
Shows an interactive picker listing all branches in the current stack, ordered from top (furthest from trunk) to bottom (closest to trunk) with their position number. Select a branch to check it out.
0 commit comments