Command Overview
Quick reference for all rung commands. Click any command for detailed documentation.
Global Options
Section titled “Global Options”These options work with most commands:
| Option | Description |
|---|---|
--json | Output as JSON (for tooling integration) |
-q, --quiet | Suppress informational output |
--help | Show help for any command |
--version | Show rung version |
Commands
Section titled “Commands”| Command | Alias | Description |
|---|---|---|
init | Initialize rung in a repository | |
adopt | ad | Adopt existing branch into the stack |
create | c | Create a new branch in the stack |
status | st | Display stack tree and PR status |
sync | sy | Rebase all branches when parents move |
submit | sm | Push branches and create/update PRs |
merge | m | Merge PR and update the stack |
restack | re | Move branch to different parent |
split | sp | Split branch into multiple branches |
fold | fo | Combine adjacent branches into one |
nxt | n | Navigate to child branch |
prv | p | Navigate to parent branch |
move | mv | Interactive branch picker |
log | Show commits on current branch | |
absorb | ab | Absorb staged changes into commits |
undo | un | Restore stack to pre-sync state |
doctor | doc | Diagnose stack and repo issues |
update | up | Update rung to the latest version |
completions | comp | Generate shell completions |
Quick Reference
Section titled “Quick Reference”Starting a Stack
Section titled “Starting a Stack”rung init # Initialize rungrung create feature/auth # Create named branchrung create -m "feat: add auth" # Create from commit messagerung adopt existing-branch # Bring existing branch into stackWorking with Stacks
Section titled “Working with Stacks”rung status # View stack tree (or: rung st)rung sync # Rebase all branches (or: rung sy)rung submit # Push and create PRs (or: rung sm)Navigation
Section titled “Navigation”rung nxt # Go to child branchrung prv # Go to parent branchrung move # Interactive pickerrung log # Show branch commitsMerging
Section titled “Merging”rung merge # Squash merge (default)rung merge --method merge # Regular mergerung merge --method rebase # Rebase mergeRestacking
Section titled “Restacking”rung restack --onto main # Move current branch onto mainrung restack feat/api --onto main # Move specific branchrung restack --onto main --include-children # Also move descendantsAbsorbing Changes
Section titled “Absorbing Changes”git add -p # Stage changes selectivelyrung absorb --dry-run # Preview what would be absorbedrung absorb # Create fixup commitsgit rebase -i --autosquash main # Apply the fixupsSplitting Branches
Section titled “Splitting Branches”rung split # Split current branch interactivelyrung split feat/big-change # Split specific branchrung split --dry-run # Preview without changesrung split --abort # Abort and restoreFolding Branches
Section titled “Folding Branches”rung fold # Interactive fold selectionrung fold --into-parent # Fold current into parentrung fold --include-children # Fold children into currentrung fold --dry-run # Preview without changesRecovery
Section titled “Recovery”rung undo # Restore from last syncrung sync --abort # Abort in-progress syncrung doctor # Diagnose issues