remove-git-worktree
git worktreeを削除します。間違えて作成した場合や、作業完了後のクリーンアップに使用します。
When & Why to Use This Skill
This Claude skill automates the removal of Git worktrees, helping developers maintain a clean and organized local environment by efficiently deleting temporary workspaces used for specific branches or tasks.
Use Cases
- Post-Task Cleanup: Quickly delete a worktree once a feature branch has been merged and the dedicated workspace is no longer required.
- Error Correction: Instantly remove a worktree that was initialized by mistake or with the incorrect branch configuration.
- Workspace Optimization: Maintain a lean development environment by purging stale or unused worktrees to free up disk space and reduce directory clutter.
| name | remove-git-worktree |
|---|---|
| description | git worktreeを削除します。間違えて作成した場合や、作業完了後のクリーンアップに使用します。 |
Remove Git Worktree
Instructions
以下のコマンドを実行して、git worktreeを削除します。 引数には削除するブランチ名を指定してください。
bash scripts/remove-worktree.sh [ブランチ名]