Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

2.7 KB
Raw Blame
$ wt list
  Branch   Status      HEAD±     main↕    main…±    Remote⇅  Commit    Age
@ main         ^|                                      |     8dd23db    1d
+ hooks    +!  ↑       +2        ↑1       +12   -7           71fcfa0    2h
+ billing      _|                                      |     8dd23db    1d
+ alpha     !? ↑⇡    +106  -14   ↑5      +264   -3   ⇡1      b1e7fc8    3d
+ beta     +   ↓|      +2            ↓1                |     604a937    5d

○ Showing 5 worktrees, 3 with changes, 2 ahead, hidden: Path, Message

$ wt switch alpha
○ Switched to worktree for alpha @ ~/w/acme.alpha

$ wt switch --create api
✓ Created branch api from main and worktree @ ~/w/acme.api
◎ Running post-start: dev (project)

$ wt list --full
  Branch   Status      HEAD±     main↕    main…±    Summary       Remote⇅  CI
@ api          _                                                           #4
^ main         ^|                                                    |     #
+ hooks    +!  ↑       +2        ↑1       +12   -7  Add math op…
+ billing      _|                                                    |     #6
+ alpha     !? ↑⇡    +106  -14   ↑5      +264   -3  Add utility…   ⇡1      #1
+ beta     +   ↓|      +2            ↓1             Add TODO no…     |     #2

○ Showing 6 worktrees, 3 with changes, 2 ahead, hidden: Path, Commit, Age,
  Message

$ wt remove
◎ Running pre-remove project:cleanup
  flyctl scale count 0
Scaling app to 0 machines
◎ Removing api worktree & branch in background (same commit as main, _)
○ Switched to worktree for main @ ~/w/acme