← 返回
开发者工具 中文

Git Auto

Git workspace automation (status/commit/push/log/diff)
Git 工作区自动化(状态/提交/推送/日志/差异)
mupengi-bot
开发者工具 clawhub v1.0.0 1 版本 99828.8 Key: 无需
★ 0
Stars
📥 1,166
下载
💾 9
安装
1
版本
#latest

概述

git-auto

Git Workspace Automation — Streamline daily Git operations with intelligent defaults. Status checks, smart commits, safe pushes, and diff analysis in one skill.

When to Use

  • Check workspace status across multiple repos
  • Generate meaningful commit messages from staged changes
  • Push with safety checks (branch protection, conflict detection)
  • View formatted logs and diffs
  • Batch operations across monorepo subdirectories

Commands

status

# Show concise workspace status
git-auto status
# Multi-repo status scan
git-auto status --all

Returns: modified files, untracked files, branch info, ahead/behind count.

commit

# Auto-generate commit message from diff
git-auto commit
# With explicit message
git-auto commit -m "feat: add user auth"
# Commit specific files
git-auto commit -f "src/auth.ts,src/types.ts"

Behavior:

  1. Runs git diff --staged to analyze changes
  2. Generates conventional commit message (feat/fix/refactor/docs/chore)
  3. Validates message format before committing
  4. Shows commit hash and summary

push

# Push current branch with safety checks
git-auto push
# Force push (with confirmation)
git-auto push --force

Safety checks:

  • Warns if pushing to main/master directly
  • Checks for upstream conflicts
  • Verifies remote exists

log

# Last 10 commits, formatted
git-auto log
# Last N commits
git-auto log -n 20
# Filter by author
git-auto log --author "name"

diff

# Staged changes
git-auto diff
# Working directory changes
git-auto diff --unstaged
# Between branches
git-auto diff main..feature-branch

Smart Commit Message Format

Uses Conventional Commits:

  • feat: — New feature
  • fix: — Bug fix
  • refactor: — Code restructuring
  • docs: — Documentation only
  • chore: — Maintenance tasks
  • test: — Adding/updating tests

Integration

Works with any Git repository. No configuration needed — auto-detects .git directory and current branch. Pairs well with code-review skill for pre-commit analysis.

Error Handling

SituationBehavior
---------------------
Not a git repoClear error message with suggestion
Merge conflictsShows conflict files, suggests resolution
No staged changesPrompts to stage or shows unstaged changes
Auth failureSuggests credential refresh
Detached HEADWarns and suggests creating branch

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 05:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

learning-engine

mupengi-bot
自动分析错误和成功模式,并在技能中体现
★ 0 📥 3,420
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 671 📥 324,378
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,826