Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:05:04 +08:00
commit 572f763fec
4 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"name": "create-worktrees",
"description": "Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleaning up stale worktrees, and supporting custom branch creation for development.",
"version": "1.0.0",
"author": {
"name": "evmts",
"url": "https://github.com/evmts"
},
"commands": [
"./commands"
]
}

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# create-worktrees
Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleaning up stale worktrees, and supporting custom branch creation for development.

View File

@@ -0,0 +1,28 @@
---
description: Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleaning up stale worktrees, and supporting custom branch creation for development.
author: evmts
author-url: https://github.com/evmts
version: 1.0.0
---
# Git Worktree Commands
This documentation provides two main bash scripts for Git worktree management:
## 1. Create Worktrees for All Open PRs
- Uses GitHub CLI to fetch open pull requests
- Creates git worktrees for each PR branch
- Handles branch names with slashes
- Includes an optional cleanup script for stale worktrees
## 2. Interactive Branch and Worktree Creation
- Prompts for a new branch name
- Validates branch name
- Creates a worktree in a `./tree/` directory
- Supports creating branches from different base commits
## Key Features
- Error handling
- Directory management
- Flexible branch creation options
- Streamlined Git workflow by making branch and worktree management more efficient

45
plugin.lock.json Normal file
View File

@@ -0,0 +1,45 @@
{
"$schema": "internal://schemas/plugin.lock.v1.json",
"pluginId": "gh:ccplugins/awesome-claude-code-plugins:plugins/create-worktrees",
"normalized": {
"repo": null,
"ref": "refs/tags/v20251128.0",
"commit": "fdd364331c7218331ac40a92a66bf8552d770302",
"treeHash": "2f542e7f56117526ce28b9ace2a7d581f9b7a33dfd43433aae2a00778f6045fa",
"generatedAt": "2025-11-28T10:14:35.444600Z",
"toolVersion": "publish_plugins.py@0.2.0"
},
"origin": {
"remote": "git@github.com:zhongweili/42plugin-data.git",
"branch": "master",
"commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390",
"repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data"
},
"manifest": {
"name": "create-worktrees",
"description": "Creates git worktrees for all open PRs or specific branches, handling branches with slashes, cleaning up stale worktrees, and supporting custom branch creation for development.",
"version": "1.0.0"
},
"content": {
"files": [
{
"path": "README.md",
"sha256": "9a9bedd0f4637c88863d7dbdc1c804c3c122c7beaf452ed130b1170d78ff74e4"
},
{
"path": ".claude-plugin/plugin.json",
"sha256": "219f69f4828aa934511c7bb3037e47beb3cb624c75480a8680b71cbc46191807"
},
{
"path": "commands/create-worktrees.md",
"sha256": "6bbb9d68486e7fadac5093923ad0712c8df669725b65bada80566fd40e0f5d54"
}
],
"dirSha256": "2f542e7f56117526ce28b9ace2a7d581f9b7a33dfd43433aae2a00778f6045fa"
},
"security": {
"scannedAt": null,
"scannerVersion": null,
"flags": []
}
}