← 教程列表
news

Safety Verification (project-local directories only)

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

**MUST verify directory is ignored before creating worktree:** ```bash git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/dev/null ``` **If NOT ignored:** Add to .gitignore, commit the change, then proceed. **Why critical:** Prevents accidentally committing worktree contents to repository. Global directories (`~/.config/superpowers/worktrees/`) need no verification.

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