Worktree Setup

Provision a freshly-created git worktree so it's actually ready to work in — trust its mise.toml, copy gitignored-but-needed files (Rails config/master.key, .env, …) from the main checkout, and re-mark shebang scripts executable. Use right after creating a worktree (native EnterWorktree or `git worktree add`), or when a new worktree errors with "mise.toml not trusted", is missing secrets/.env, can't load the app, or has non-executable scripts. Also when parallel worktrees collide on the same dev-server port or database — opt into per-worktree ports + databases via a `.worktree-isolate.conf`. Pairs with using-git-worktrees (which creates the worktree; this provisions it).

mickzijdel 1590e04 4 files · 24.3 KB Updated

File contents

mickzijdel/dev-hooks/tree/main/plugins/dev-hooks/skills/worktree-setup commit 1590e04431

Frequently asked questions

npx skillmds@latest add mickzijdel/worktree-setup