Install
openclaw skills install git-workflowClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
OpenClaw Git 工作流技能。 当用户提及以下任务时使用: - 提交代码或文档 - 推送到远程仓库 - 管理多个 Git 仓库 - 查看 Git 状态 核心能力: - 自动检测文件变更 - 自动生成提交信息 - 自动推送到远程仓库 - 多仓库管理
openclaw skills install git-workflow# 检查 Git 状态
git status
# 查看变更文件
git diff --name-only
# 添加所有变更
git add .
# 或添加指定文件
git add <file1> <file2>
根据变更内容自动生成提交信息:
# 提交信息格式
<type>: <description>
# 类型说明
feat: 新功能
fix: 修复 bug
docs: 文档更新
style: 代码格式
refactor: 重构
test: 测试
chore: 构建/工具
# 提交
git commit -m "提交信息"
# 推送
git push
触发: 分析任务完成
操作:
提交信息示例:
feat: 完成股票分析
- 分析 000657 中钨高新
- 生成三高股票筛选报告
- 保存到 Stock-Analysis 仓库
触发: 需要提交到多个仓库
操作:
仓库示例:
错误消息: "Please tell me who you are"
解决方案:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
错误消息: "Authentication failed"
解决方案:
错误消息: "CONFLICT (content)"
解决方案:
git add <resolved_file>
git commit