Removes specific Git worktrees to maintain a clean development environment and manage branch-specific directories.
The Remove Git Worktree skill provides a streamlined way to delete Git worktrees directly through Claude Code. It is particularly useful for developers who use multiple worktrees to handle concurrent features or bug fixes and need to efficiently clean up directories after a task is completed or if a worktree was created in error. By automating the removal script execution, it ensures that your workspace remains organized and free of stale development environments without requiring manual file system navigation.
Key Features
01Script-based execution for consistency
02Workspace environment optimization
03Automated worktree cleanup
040 GitHub stars
05Streamlined workflow management
06Branch-specific deletion logic
Use Cases
01Freeing up disk space by removing inactive or stale development environments.
02Cleaning up local directories after a feature branch has been merged and closed.
03Quickly deleting a mistakenly created worktree to avoid directory path conflicts.