Skip to main content

git-worktree

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

معلومات المصدر

المستودع
ThinkfleetAI/thinkfleet-engine
آخر نشاط في المصدر
١ فبراير ٢٠٢٦ في ١٦:٢١
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٠
التفرعات
٠

خيارات التثبيت

يُحدَّد 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