From 019adcf7081d55b5f310b0554bdf2a711bbaef11 Mon Sep 17 00:00:00 2001 From: Amolith Date: Sun, 18 Jan 2026 17:22:27 -0700 Subject: [PATCH] docs(wt): document init file preservation wt init now copies untracked/ignored files to the worktree before cleanup. Assisted-by: Claude Opus 4.5 via Amp --- skills/managing-and-navigating-worktrees/refs/converting.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skills/managing-and-navigating-worktrees/refs/converting.md b/skills/managing-and-navigating-worktrees/refs/converting.md index 91c50735fb76ab739c35c7f72e64690dfa058f1d..4d3bab9f4e1124f165de13a41fe9782d64eb68d7 100644 --- a/skills/managing-and-navigating-worktrees/refs/converting.md +++ b/skills/managing-and-navigating-worktrees/refs/converting.md @@ -18,7 +18,8 @@ Converts a standard git repository to bare worktree structure. 1. Moves `.git/` to `.bare/` 2. Creates `.git` file pointing to `.bare/` 3. Creates worktree for current branch -4. Removes orphaned files from project root +4. Copies untracked/ignored files to worktree (preserves `.env`, build artifacts, etc.) +5. Removes orphaned files from project root ## Example