跳到正文
cccskills
免费在 GitHub 公开

git-workflow

OpenClaw Git 工作流技能。当用户提及以下任务时使用: - 提交代码或文档 - 推送到远程仓库 - 管理多个 Git 仓库 - 查看 Git 状态 核心能力: - 自动检测文件变更 - 自动生成提交信息 - 自动推送到远程仓库 - 多仓库管理

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(5)

  • SKILL.md2.9 KB
  • _meta.json131 B
  • .clawhub/origin.json144 B
  • gep_manifest.json4.2 KB
  • skill.yaml1.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Git 工作流技能

核心指令

第一步:检测文件变更

# 检查 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

示例

示例 1: 分析完成后自动提交

触发: 分析任务完成

操作:

  1. 检测新生成的文件
  2. 添加到 Git
  3. 生成提交信息
  4. 提交并推送

提交信息示例:

feat: 完成股票分析

- 分析 000657 中钨高新
- 生成三高股票筛选报告
- 保存到 Stock-Analysis 仓库

示例 2: 多仓库管理

触发: 需要提交到多个仓库

操作:

  1. 识别文件所属仓库
  2. 分别提交到对应仓库
  3. 分别推送

仓库示例:

  • Jarvis: 记忆、配置
  • Stock-Analysis: 股票分析代码
  • Amazon-Analyzer: 亚马逊运营工具

故障排除

错误 1: Git 未配置

错误消息: "Please tell me who you are"

解决方案:

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

错误 2: 推送失败

错误消息: "Authentication failed"

解决方案:

  1. 检查 Git 凭据
  2. 使用 Token 代替密码
  3. 配置 SSH Key

错误 3: 冲突

错误消息: "CONFLICT (content)"

解决方案:

  1. 查看冲突文件
  2. 手动解决冲突
  3. 标记为解决
    git add <resolved_file>
    
  4. 完成提交
    git commit
    

最佳实践

提交频率

  • 小改动:随时提交
  • 大功能:功能完成后提交
  • 每日结束:提交当日工作

提交信息

  • 清晰简洁
  • 使用现在时
  • 首字母大写
  • 不超过 50 字符

分支管理

  • main/master: 主分支
  • feature/*: 功能分支
  • fix/*: 修复分支
  • docs/*: 文档分支

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Expert sales execution covering pipeline management, discovery, demos, negotiation, and deal closing. Use when qualifying opportunities, running MEDDIC discovery, building account plans, handling objections, structuring proposals, or forecasting pipeline.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Support accounting understanding from basic bookkeeping to professional practice and research.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

Automate ActiveCampaign tasks via Rube MCP (Composio): manage contacts, tags, list subscriptions, automation enrollment, and tasks. Always search tools first for current schemas.

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

add-lead

免费

Add company/person/relationship to CRM

中文简介正在准备中。当前显示原文说明。

aAAaqwq/openclaw-team22026年6月18日 更新

查看 aAAaqwq 的全部技能

报告此技能的问题