Many gs commands use interactive prompts to help you select branches, enter names, or make decisions. Here are the keyboard shortcuts available.
Navigation and Selection
| Key | Action |
|---|
| Arrow keys (up/down) | Navigate through options |
| Tab | Move to next option (in Select prompts) |
| Enter | Confirm selection or submit input |
| Type to filter | Start typing to filter options (in Select prompts) |
Vim Mode
| Key | Action |
|---|
| ESC | Toggle vim mode on/off |
| j | Move down (when vim mode is enabled) |
| k | Move up (when vim mode is enabled) |
Editing (Input prompts)
| Key | Action |
|---|
| Backspace / Delete | Remove characters |
| Ctrl+W | Delete word |
| Ctrl+U | Delete line |
Control
| Key | Action |
|---|
| Ctrl+C | Cancel and exit the current prompt |
Tips
- Use vim mode for faster navigation if you're comfortable with j/k keys. Press ESC to toggle.
- Type to filter in Select prompts to quickly find branches in large stacks.
- Use
gs co -t as a quick way to return to trunk from anywhere.
- Press Ctrl+C anytime to safely cancel an operation.