提交推送并开 PR提示词
编程2.2万
Claude Code 斜杠命令:提交、推送并向 main 开 PR
A slash command to commit, push, and open a PR to main.
提示词全文
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*) description: Commit and push everything then open a PR request to main --- ## 上下文 - 当前 git 状态: !`git status` - 当前 git 差异(已暂存和未暂存的更改): !`git diff HEAD` - 当前分支: !`git branch --show-current` - 最近的提交: !`git log --oneline -10` ## 你的任务 1. 审阅现有更改,然后按照约定式提交格式创建一个 git 提交。如果你认为存在多个不同的更改,可以创建多个提交。如果没有未处理的更改,则直接进入第 2 步。 2. 推送所有提交。 3. 按照约定式格式向 main 开一个 PR。
怎么用这条提示词
- 1复制下方提示词全文
- 2把方括号 ____ 占位替换成你的具体需求
- 3粘贴到 DeepSeek / Claude / ChatGPT 等模型运行