Files
wind_power_cal/.agents/workflows/git-push.md
T
2026-07-14 15:43:18 +08:00

30 lines
770 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 提交代码并推送 - 只输出命令,不执行
---
# Git 提交推送
当用户要求提交代码并 push 时,**只输出具体的 shell 命令**,由用户自行执行。
## 规则
1. **禁止调用 `run_command` 执行 git 命令**git add / commit / push),因为 git 命令容易卡住
2. 只在回复中给出可直接复制粘贴的 shell 命令块
3. 提交信息遵循 `git-commit` skill 中的中文提交规范
4. 提交前先清除可能的锁文件
## 命令模板
```bash
# 清除锁文件
rm -f /home/cloud/code/edge_collector/.git/index.lock
# 提交并推送
cd /home/cloud/code/edge_collector
git add -A && git -c commit.gpgsign=false commit -m "<类型>: <描述>
- <改动详情1>
- <改动详情2>"
git push
```