Skip to content

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

2.9 KB
Raw Blame
$ wt list
  Branch  Status      HEAD±     main↕    main…±    Remote⇅  Commit    Age
@ main        ^|                                      |     2bdcf67    1d
+ hooks   +!  ↑      +25        ↑1       +12   -7           411beae    2h
+ alpha    !? ↑⇡    +106  -14   ↑5      +264   -3   ⇡1      94a16dc    3d
+ beta    +   ↓|      +2            ↓1                |     ad21d97    5d

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

$ wt switch --create notes
✓ Created branch notes from main and worktree @ ~/w/acme.notes

$ wt merge
◎ Running pre-merge project:test
  cargo nextest run
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s
    Starting 2 tests across 1 binary
        PASS [   0.001s] acme::tests::test_add
        PASS [   0.001s] acme::tests::test_add_zeros
------------
     Summary [   0.002s] 2 tests run: 2 passed, 0 skipped
○ Already up to date with main (no new commits, no rebase needed)
◎ Removing notes worktree & branch in background (same commit as main, _)
○ Switched to worktree for main @ ~/w/acme

$ wt list --branches --full
  Branch        Status      HEAD±     main↕    main…±    Remote⇅  CI     Commit
@ main              ^|                                      |     #      2bdcf67
+ hooks         +!  ↑      +25        ↑1       +12   -7                  411beae
+ alpha          !? ↑⇡    +106  -14   ↑5      +264   -3   ⇡1      #1     94a16dc
+ beta          +   ↓|      +2            ↓1                |     #2     ad21d97
/ docs/readme      /⊂                     ↓1                             ad21d97
/ spike/search     /⊂                     ↓1                             ad21d97

○ Showing 4 worktrees, 2 branches, 3 with changes, 2 ahead, hidden: Summary,
  Path, Age, Message