carapace-sh/carapace-bin / skills/but
but
VerifiedUse when working with the GitButler CLI (`but`) — virtual branches, stacked branches, workspace model, commit editing (rub, amend, squash, reword), CLI IDs, forge integration, PRs, operations log, conflict resolution, TUI, AI agent setup, skills, aliases, configuration. Triggers on: "but", "gitbutler", "but rub", "but commit", "but status", "but branch", "but apply", "but unapply", "but push", "but pull", "but pr", "but oplog", "but undo", "but redo", "but resolve", "but stage", "but squash", "but amend", "but reword", "but config", "but alias", "but setup", "but teardown", "but tui", "but diff", "but show", "but agent", "but skill", "but clean", "but move", "but pick", "but absorb", "but update", "but completions", "virtual branch", "stacked branch", "integration branch", "gitbutler workspace", "but oplog restore", "but oplog snapshot", "CLI ID", "hunk ID".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.5 KB |
| references/ai-agents.md | markdown | 6.2 KB |
| references/branches.md | markdown | 5.4 KB |
| references/commits.md | markdown | 6.9 KB |
| references/config.md | markdown | 4.5 KB |
| references/conflicts.md | markdown | 2.1 KB |
| references/forge.md | markdown | 3.6 KB |
| references/inspection.md | markdown | 4.5 KB |
| references/misc.md | markdown | 3.4 KB |
| references/oplog.md | markdown | 3.3 KB |
| references/rubbing.md | markdown | 3.0 KB |
| references/tui.md | markdown | 2.1 KB |
| references/workspace.md | markdown | 4.6 KB |
references/tui.md
View on GitHub# TUI — Interactive Terminal UI
The GitButler TUI provides a keyboard-first, interactive terminal interface for the full workspace.
> **Source of truth**: <https://docs.gitbutler.com/gitbutler-tui>
## `but tui` — Launch the TUI
```bash
but tui
```
Opens an interactive, full-terminal workspace view showing unassigned changes, branch lanes, commits, and file-level changes.
## Capabilities
The TUI provides access to most GitButler operations without typing commands:
- Inspect unassigned changes, branch lanes, commits, file-level changes
- Open details pane for branches, commits, files, or hunks
- Create commits and empty commits
- Create branches
- Move commits or branches (including multiple commits at once since 0.20.4)
- Apply branches from the TUI (since 0.20.4)
- Reorder stacks (since 0.20.4)
- Rub changes into a branch or commit
- Reword commits or branch names
- Discard local work
- Undo and redo operations
- Commit above or below the selected commit (since 0.20.4)
## Keybindings
### Navigation
| Key | Action |
|-----|--------|
| `j` / `k` / arrows | Move by line |
| `ctrl+d` / `ctrl+u` | Jump by 10 lines |
| `shift+j` / `shift+k` | Jump by section |
| `g` | Go to top |
| `shift+g` | Go to bottom |
### Actions
| Key | Action |
|-----|--------|
| `d` | Open details pane |
| `c` | Create commit |
| `r` | Rub (combine entities) |
| `u` | Undo |
| `shift+u` | Redo |
| `:` | Command mode |
| `!` | External command |
| `shift+y` | Copy (commit details, diff hunks, branch names, etc.) |
### Confirmation Behavior (since 0.20.4)
Unapplying a branch and undoing no longer prompt for confirmation — both can be undone via the oplog.
## Diff TUI
```bash
but diff --tui
```
Opens a focused diff viewer for inspecting changes interactively.
## Stage Hunk Picker
```bash
but stage
```
Running `but stage` without arguments opens the interactive hunk picker, where you can select specific hunks to stage to a branch.
## Related
- [commits.md](commits.md) — Commit commands available from the TUI
- [rubbing.md](rubbing.md) — Rub operations available from the TUI
- [inspection.md](inspection.md) — Status and diff commands
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |