news
Directory Selection
Follow this priority order: 1. **Check existing directories:** ```bash ls -d .worktrees 2>/dev/null # Preferred (hidden) ls -d worktrees 2>/dev/null # Alternative ``` If found, use that directory. If both exist, `.worktrees` wins. 2. **Check for existing global directory:** ```bash project=$(basename "$(git rev-parse --show-toplevel)") ls -d ~/.config/superpowers/worktrees/$project 2>/dev/null ``` If found, use it (backward compatibility with legacy global path). 3. **Check your instructions for a worktree directory preference.** If specified, use it without asking. 4. **Default to `.worktrees/`.**
← 返回教程列表
AI8899 · 内容仅供学习参考