← 教程列表
news

Option 4: Discard

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

**Confirm first:** ``` This will permanently delete: - Branch - All commits: - Worktree at Type 'discard' to confirm. ``` Wait for exact confirmation. If confirmed: ```bash MAIN_ROOT=$(git -C "$(git rev-parse --git-common-dir)/.." rev-parse --show-toplevel) cd "$MAIN_ROOT" ``` Then: Cleanup worktree (Step 6), then force-delete branch: ```bash git branch -D ```

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