← 教程列表
news

Step 5: Cleanup Worktree

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 7 阅读

**For Options 1, 2, 4:** Check if in worktree: ```bash git worktree list | grep $(git branch --show-current) ``` If yes: ```bash git worktree remove ``` **For Option 3:** Keep worktree. ``` - [ ] **Step 2: Add the cleanup guard before existing logic** Replace the Step 5 section with: ```markdown

← 返回教程列表 AI8899 · 内容仅供学习参考