Skip to content

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

Update for-each example to include git fetch

Maximilian Roos795bcfb0e4ac
diff --git a/src/cli.rs b/src/cli.rs
index 1597a8f4c..795120503 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -838,7 +838,7 @@ wt step for-each -- "echo Branch: {{ branch }}"
Pull updates in worktrees with upstreams (skips others):
```console
-wt step for-each -- '[ "$(git rev-parse @{u} 2>/dev/null)" ] || exit 0; git pull --autostash'
+git fetch --prune && wt step for-each -- '[ "$(git rev-parse @{u} 2>/dev/null)" ] || exit 0; git pull --autostash'
```
Note: This command is experimental and may change in future versions.