Skip to content

Documentation

Navigating Stacks

Move through your stack by structure, not by name.

gs checkout

Smart branch checkout with interactive selection. Shows stack context for each branch.

# Interactive mode — select from list of branches
gs co
 
# Quick checkout to trunk
gs co -t
gs co --trunk
 
# Show untracked branches in selection
gs co -u
gs co --show-untracked
 
# Only show branches in current stack
gs co -s
gs co --stack

Aliases: co, checkout, switch

Relative navigation

Move through the stack along parent-child edges without knowing branch names.

CommandAliasDescription
gs up [n]uMove up toward leaves
gs down [n]dnMove down toward trunk
gs toptJump to top of stack
gs bottombJump to trunk
gs up        # Move to child branch
gs up 2      # Move up 2 branches
gs down      # Move to parent branch
gs top       # Jump to topmost leaf
gs bottom    # Jump to trunk

Inspecting branches

gs info

Show detailed information about the current branch, including parent, children, depth in stack, and path to trunk.

gs info

gs parent

Show the parent branch of the current branch.

gs parent

gs children

Show all child branches of the current branch.

gs children

Workflow: navigating your stack

# View the stack
gs log
 
# Quickly jump to trunk
gs co -t
 
# Interactively select a branch to checkout
gs co
 
# Only see branches in current stack
gs co -s