Skip to content

Command Overview

Quick reference for all rung commands. Click any command for detailed documentation.

These options work with most commands:

OptionDescription
--jsonOutput as JSON (for tooling integration)
-q, --quietSuppress informational output
--helpShow help for any command
--versionShow rung version
CommandAliasDescription
initInitialize rung in a repository
adoptadAdopt existing branch into the stack
createcCreate a new branch in the stack
statusstDisplay stack tree and PR status
syncsyRebase all branches when parents move
submitsmPush branches and create/update PRs
mergemMerge PR and update the stack
restackreMove branch to different parent
splitspSplit branch into multiple branches
foldfoCombine adjacent branches into one
nxtnNavigate to child branch
prvpNavigate to parent branch
movemvInteractive branch picker
logShow commits on current branch
absorbabAbsorb staged changes into commits
undounRestore stack to pre-sync state
doctordocDiagnose stack and repo issues
updateupUpdate rung to the latest version
completionscompGenerate shell completions
Terminal window
rung init # Initialize rung
rung create feature/auth # Create named branch
rung create -m "feat: add auth" # Create from commit message
rung adopt existing-branch # Bring existing branch into stack
Terminal window
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)
Terminal window
rung nxt # Go to child branch
rung prv # Go to parent branch
rung move # Interactive picker
rung log # Show branch commits
Terminal window
rung merge # Squash merge (default)
rung merge --method merge # Regular merge
rung merge --method rebase # Rebase merge
Terminal window
rung restack --onto main # Move current branch onto main
rung restack feat/api --onto main # Move specific branch
rung restack --onto main --include-children # Also move descendants
Terminal window
git add -p # Stage changes selectively
rung absorb --dry-run # Preview what would be absorbed
rung absorb # Create fixup commits
git rebase -i --autosquash main # Apply the fixups
Terminal window
rung split # Split current branch interactively
rung split feat/big-change # Split specific branch
rung split --dry-run # Preview without changes
rung split --abort # Abort and restore
Terminal window
rung fold # Interactive fold selection
rung fold --into-parent # Fold current into parent
rung fold --include-children # Fold children into current
rung fold --dry-run # Preview without changes
Terminal window
rung undo # Restore from last sync
rung sync --abort # Abort in-progress sync
rung doctor # Diagnose issues