Command Reference¶
Stack provides commands organized into categories.
Stack Management¶
Commands for creating and managing branches in your stack.
| Command | Description |
|---|---|
create |
Create a new branch on top of current |
delete |
Delete a branch from the stack |
rename |
Rename the current branch |
track |
Start tracking an existing branch |
Navigation¶
Commands for moving between branches in your stack.
| Command | Description |
|---|---|
up / down |
Move up or down the stack |
top / bottom |
Jump to stack tip or root |
checkout |
Switch to a specific branch |
log |
View the stack structure |
Workflow¶
Commands for syncing and managing your workflow.
| Command | Description |
|---|---|
sync |
Sync with remote and restack |
restack |
Rebase branches onto updated parents |
submit |
Create or update pull requests |
land |
Merge approved PRs |
Editing¶
Commands for modifying commits and history.
| Command | Description |
|---|---|
modify |
Amend the current commit |
squash |
Squash commits in current branch |
fold |
Fold changes into a previous commit |
split |
Split a commit into multiple |
Utilities¶
Utility and helper commands.
| Command | Description |
|---|---|
undo / redo |
Undo or redo operations |
config |
View or edit configuration |
auth |
Manage authentication |
Global Options¶
These options work with any command:
--debug Enable debug output
-q, --quiet Suppress non-essential output
-h, --help Print help
-V, --version Print version
Getting Help¶
Get help for any command: