remove-git-worktree
Git Worktree와 브랜치를 안전하게 제거
여러 Git worktree를 관리하면 작업 공간이 복잡해질 수 있습니다. 이 스킬은 적절한 검증을 통해 worktree와 관련 브랜치의 제거를 자동화합니다.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "remove-git-worktree". Remove the worktree for branch feature/new-ui
النتيجة المتوقعة:
Removing worktree for branch: feature/new-ui
Worktree path: /path/to/repo/../repo-worktrees/feature-new-ui
Worktree removed.
Branch 'feature/new-ui' deleted.
Done.
استخدام "remove-git-worktree". Remove worktree for bugfix/header-issue
النتيجة المتوقعة:
Removing worktree for branch: bugfix/header-issue
Worktree path: /path/to/repo/../repo-worktrees/bugfix-header-issue
Worktree removed.
Branch 'bugfix/header-issue' deleted.
Done.
التدقيق الأمني
مخاطر منخفضةThis skill executes git commands and filesystem operations to remove worktrees. All detected patterns are false positives - the shell commands are legitimate git operations, path traversal is intentional for worktree directory structure, and detected URLs are metadata only. The script properly validates input and checks for worktree existence before removal.
مشكلات منخفضة المخاطر (1)
عوامل الخطر
⚙️ الأوامر الخارجية (5)
📁 الوصول إلى نظام الملفات (2)
درجة الجودة
ماذا يمكنك بناءه
기능 개발 완료 후 정리
기능 브랜치를 병합한 후 개발자는 worktree와 브랜치를 빠르게 제거하여 작업 공간을 깨끗하게 유지할 수 있습니다.
Worktree 생성 실수 수정
잘못된 매개변수로 또는 잘못된 위치에 worktree가 생성된 경우, 이 스킬은 수동으로 디렉토리를 삭제하지 않고도 깨끗하게 제거합니다.
일괄 작업 공간 유지보수
정기적인 작업 공간 유지보수 중에 팀은 완료되었거나 중단된 기능의 오래된 worktree를 체계적으로 제거할 수 있습니다.
جرّب هذه الموجهات
Remove the worktree for branch feature/user-auth
Remove worktrees for branches feature/login, feature/signup, and bugfix/header
I just merged the feature/payment-integration branch. Remove its worktree and local branch.
List all my worktrees, identify any that are no longer needed, and remove them
أفضل الممارسات
- 작업을 잃지 않도록 worktree를 제거하기 전에 항상 브랜치가 병합되었거나 원격 저장소에 푸시되었는지 확인하세요
- 기능이나 버그 수정을 완료한 후 정기적인 작업 공간 정리 루틴의 일부로 이 스킬을 사용하세요
- 경로 확인 오류를 방지하기 위해 제거를 실행할 때 메인 저장소에 있는지 확인하세요
تجنب
- 작업을 먼저 저장하거나 커밋하지 않고 커밋되지 않은 변경사항이 있는 worktree를 제거하는 것
- 아직 진행 중인 활성 개발 브랜치의 worktree를 삭제하는 것
- 프로젝트에서 사용되는 worktree 경로 규칙을 이해하지 못한 채 이 스킬을 사용하는 것
الأسئلة المتكررة
worktree에 커밋되지 않은 변경사항이 있으면 어떻게 되나요?
이 스킬을 사용한 후 브랜치를 복구할 수 있나요?
이 스킬은 어디에서 worktree를 찾나요?
다른 위치에 수동으로 생성된 worktree도 제거하나요?
이 스킬이 원격 저장소에 영향을 주나요?
정리를 자동화하기 위해 Claude Code와 함께 사용할 수 있나요?
تفاصيل المطور
المؤلف
AKABANAKKالترخيص
MIT
المستودع
https://github.com/AKABANAKK/claude-code-marketplace/tree/main/akb7/skills/remove-git-worktreeمرجع
main
بنية الملفات