Skip to main content

git-worktree

Manage git worktrees for parallel development — create, list, and remove isolated working directories.

来源信息

仓库
ThinkfleetAI/thinkfleet-engine
最近来源活动
2026年2月1日 16:21
检测到的 SKILL.md 语言
英语
星标
0
Forks
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
git-worktree
description
Manage git worktrees for parallel development — create, list, and remove isolated working directories.
metadata
{"thinkfleetbot":{"emoji":"🌳","requires":{"bins":"[Truncated]"}}}
# Git Worktree Manage git worktrees for parallel, isolated development. ## Create a worktree ```bash git worktree add .worktrees/IDENTIFIER -b feature/IDENTIFIER main ``` Creates a new worktree at `.worktrees/IDENTIFIER` on branch `feature/IDENTIFIER` based off `main`. ## List worktrees ```bash git worktree list ``` Shows all active worktrees with their paths, HEAD commits, and branch names. ## Remove a worktree ```bash git worktree remove .worktrees/IDENTIFIER --force git branch -D feature/IDENTIFIER ``` Removes the worktree directory and deletes the associated branch. ## Prune stale worktrees ```bash git worktree prune ``` Cleans up stale worktree references (e.g., after manually deleting a directory). ## Notes - Worktrees allow multiple branches to be checked out simultaneously in separate directories. - Each worktree has its own working directory but shares the same `.git` repository. - Always confirm before removing worktrees that may contain uncommitted changes.
在 GitHub 查看