gt up / gt down¶
Navigate up or down the stack.
Usage¶
Arguments¶
| Argument | Description |
|---|---|
[count] |
Number of branches to move (default: 1) |
Examples¶
Move One Branch¶
Move Multiple Branches¶
Stack Direction¶
main (trunk)
└── feature/a ← "down" direction (toward root)
└── feature/b ← current
└── feature/c ← "up" direction (toward tip)
- Up moves toward the tip (child branches, newer changes)
- Down moves toward the root (parent branches, trunk)
Behavior¶
- Checks out the target branch
- If count exceeds available branches, moves to the end (top or bottom)
Related Commands¶
gt top- Jump to stack tipgt bottom- Jump to stack rootgt checkout- Checkout by namegt log- View the stack