worktree
/worktree
Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.
- Author
- mattg101 ↗
- Repository
- SolidLink ↗
- Licence
- MIT
- Last repository change
- 12.05.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 12.05.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.
Original author description
Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.
How it works
- Overview
- Quick Start
- Task Playbook
- Configuration Guidance
- Shell Integration
SKILL.md preview
---
name: worktree
description: Use when managing git worktrees (list, create/switch, delete, configure) in this repo; prefer the git-wt subcommand for worktree operations and its configuration options.
---
# Worktree
## Overview
Use `git wt` as the default interface for git worktree tasks. It wraps `git worktree` to list, create, switch, and delete worktrees with safer defaults.
## Quick Start
```console
git wt # list worktrees
git wt <branch|worktree> # switch/create (creates branch and worktree if needed)
git wt -d <branch|worktree> # delete worktree and branch (safe)
git wt -D <branch|worktree> # force delete worktree and branch
```
## Task Playbook
### List worktrees
Run `git wt` and parse the output. Use this to confirm names and paths before switching or deleting.
### Create or switch worktree
Prefer `git wt <branch|worktree>` for both actions. It will create the branch/worktree if missing, otherwise switch to it.
If staying in the current directory matters, use `--nocd`:
```console
git wt --nocd feature-branch
```
### Delete worktree
Use `git wt -d <branch|worktree>` for a safe delete. Only use `-D` if explicitly requested or when cleanup must be forced.
## Configuration Guidance
Use `git config` for defaults; override with flags when needed.
- `wt.basedir` / `--basedir`: set the worktree base directory (default is `../{gitroot}-wt`).
- `wt.copyignored` / `--copyignored`: copy gitignored files (for example, `.env`) when creating.
- `wt.copyuntracked` / `--copyuntracked`: copy untracked files on create.
- `wt.copymodified` / `--copymodified`: copy modified tracked files on create.
- `wt.nocopy` / `--nocopy`: exclude files from copying (gitignore syntax).
- `wt.copy` / `--copy`: always copy specific patterns even if ignored.
- `wt.hook` / `--hook`: run commands after creating a new worktree.
- `wt.nocd` / `--nocd`: prevent automatic directory switching.
## Shell Integration
When asked to enable shell integration, use the appropriate init command:
```powershell
Invoke-Expression (git wt --init powershell | Out-String)
```
Use `--nocd` with `--init` to enable completion without wrapping `git` when required.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · mattg101/SolidLink | 100 | MIT |
| vanducng/skills | 100 | MIT |
| tony/skills | 100 | MIT |
| zts212653/clowder-ai | 100 | MIT |
| duronext/jig | 100 | MIT |
| guangshinhaha/shinstack | 100 | MIT |
| PranamRDoshi/dotclaude | 100 | MIT |
| kronael/tools | 100 | Unlicense |
| rhesis-ai/rhesis | 100 | MIT |
Database snapshot: 13.11.2026 · package version c0b5f8cb9414 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100wt
This skill should be used when the user asks about 'wt', 'worktree', 'worktrees', 'wt create', 'wt checkout', 'wt list', 'wt remove', 'wt pr', 'wt mr', or mentions managing git worktrees with wt. Also use when the user asks how wt works, how to use wt commands, or how to… - 100git-wt
Manages worktree lifecycle operations through git-wt without replacing an existing linked worktree. Use when creating, switching, listing, renaming, or deleting worktrees. - 100flux-worktree-kit
Manage git worktrees (create/list/switch/cleanup) and copy .env files. Use for parallel feature work, isolated review, clean workspace, or when user mentions worktrees. - 100git-worktree
Manage Git worktrees for isolated parallel development. Use when creating, switching, or cleaning up worktrees for parallel bead work. - 100worktree-switching
Git worktree support in sidecar: worktree detection, switching between worktrees, worktree state management, and plugin reinitialization. Covers the full lifecycle of worktree context switching including registry reinit, per-worktree state persistence, deleted worktree detection… - 100create-worktree
Create a ClickHouse git worktree with submodules hardlinked from the main repo. Use when the user wants to create a new worktree for ClickHouse development.