复现已有算法
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
---
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user