返回顶部
g

git-autoGit自动

Git workspace automation (status/commit/push/log/diff)

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
751
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

git-auto

git-auto

Git 工作区自动化 — 通过智能默认设置简化日常 Git 操作。一个技能即可完成状态检查、智能提交、安全推送和差异分析。

使用场景

  • - 检查多个仓库的工作区状态
  • 从暂存变更中生成有意义的提交信息
  • 带安全检查的推送(分支保护、冲突检测)
  • 查看格式化的日志和差异
  • 对单体仓库子目录执行批量操作

命令

status

bash

显示简洁的工作区状态

git-auto status

多仓库状态扫描

git-auto status --all

返回:已修改文件、未跟踪文件、分支信息、领先/落后计数。

commit

bash

从差异自动生成提交信息

git-auto commit

使用显式信息

git-auto commit -m feat: 添加用户认证

提交特定文件

git-auto commit -f src/auth.ts,src/types.ts

行为:

  1. 1. 运行 git diff --staged 分析变更
  2. 生成约定式提交信息(feat/fix/refactor/docs/chore)
  3. 提交前验证信息格式
  4. 显示提交哈希和摘要

push

bash

带安全检查推送当前分支

git-auto push

强制推送(需确认)

git-auto push --force

安全检查:

  • - 直接推送到 main/master 时发出警告
  • 检查上游冲突
  • 验证远程仓库是否存在

log

bash

最近10次提交,格式化显示

git-auto log

最近N次提交

git-auto log -n 20

按作者筛选

git-auto log --author name

diff

bash

暂存区变更

git-auto diff

工作目录变更

git-auto diff --unstaged

分支间差异

git-auto diff main..feature-branch

智能提交信息格式

采用约定式提交规范:

  • - feat: — 新功能
  • fix: — 错误修复
  • refactor: — 代码重构
  • docs: — 仅文档变更
  • chore: — 维护任务
  • test: — 添加/更新测试

集成

适用于任何 Git 仓库。无需配置 — 自动检测 .git 目录和当前分支。可与 code-review 技能配合使用,进行提交前分析。

错误处理

情况行为
非 Git 仓库显示清晰的错误信息及建议
合并冲突
显示冲突文件,建议解决方案 | | 无暂存变更 | 提示暂存或显示未暂存变更 | | 认证失败 | 建议刷新凭据 | | 分离头指针 | 发出警告并建议创建分支 |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-auto-1776420047 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-auto-1776420047 技能

通过命令行安装

skillhub install git-auto-1776420047

下载

⬇ 下载 git-auto v1.0.0(免费)

文件大小: 4.22 KB | 发布时间: 2026-4-17 18:30

v1.0.0 最新 2026-4-17 18:30
Initial release of git-auto — automate and simplify common Git tasks with smart defaults.

- Provides commands for status, commit (with message generation), push (with branch safety), log, and diff.
- Supports batch and multi-repo operations.
- Auto-detects git repositories and integrates with conventional commit standards.
- Includes built-in safety checks for push, branch protection, and conflict detection.
- User-friendly error handling for common git issues.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部