770 B
770 B
description
| description |
|---|
| 提交代码并推送 - 只输出命令,不执行 |
Git 提交推送
当用户要求提交代码并 push 时,只输出具体的 shell 命令,由用户自行执行。
规则
- 禁止调用
run_command执行 git 命令(git add / commit / push),因为 git 命令容易卡住 - 只在回复中给出可直接复制粘贴的 shell 命令块
- 提交信息遵循
git-commitskill 中的中文提交规范 - 提交前先清除可能的锁文件
命令模板
# 清除锁文件
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