git-worktrees-push
Push committed worktree branches to origin across code/ repos. Use to push a worktree branch or publish worktree commits for a PR or MR.
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- git-worktrees-push
- description
- Push committed worktree branches to origin across code/ repos. Use to push a worktree branch or publish worktree commits for a PR or MR.
02 资源文件 3
- 脚本scripts/push.sh1.1 KB
- 其他tests/test_push.bats2.7 KB
- 脚本tests/test_push.sh4.3 KB
03 SKILL.md 正文
git-worktrees-push
Pushes the branch checked out in <config dir>/worktrees/<branch>/<repo> (for example .claude/worktrees/<branch>/<repo>) to origin for
each requested repo. Runs after git-worktrees-commit has produced local
commits and before opening or updating a pull request.
Procedure
- Determine the branch name and target repos from the user's request. If no
repos are given, the script defaults to every submodule under
code/. - Run the script:
Omitmise exec -- bash ${CLAUDE_PLUGIN_ROOT}/skills/git-worktrees-push/scripts/push.sh --branch <branch> --repos <repo-a>,<repo-b>--reposto push all repos. - The script pushes each repo independently and never aborts early: a missing worktree or a rejected push in one repo does not stop the others.
- Read the printed report table (repo, status, detail) and relay it to the
user.
okmeans pushed;failedmeans either no worktree exists at the expected path, orgit pushwas rejected (non-fast-forward, missing remote permissions, etc) - the detail column carries the git error text. - The script exits non-zero if any repo failed. Surface that as a failure to the user; do not silently retry or force-push on their behalf.
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.