← 返回
开发者工具

Git Summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
快速获取当前Git仓库的摘要,包括状态、近期提交、分支和贡献者。
zweack
开发者工具 clawhub v1.0.0 1 版本 99252.5 Key: 无需
★ 1
Stars
📥 4,096
下载
💾 266
安装
1
版本
#latest

概述

Git Summary Skill

This skill provides a comprehensive overview of the current Git repository state.

Usage

When the user asks for a git summary, repository overview, or wants to understand the current state of a git project, use the terminal to run the following commands and present the results in a clear, organized format.

Instructions

  1. Repository Status: Run git status --short --branch to get the current branch and working directory status.
  1. Recent Commits: Run git log --oneline -10 --decorate to show the last 10 commits with branch/tag decorations.
  1. Branch Overview: Run git branch -a --list to list all local and remote branches.
  1. Remote Info: Run git remote -v to show configured remotes.
  1. Uncommitted Changes Summary:
    • Run git diff --stat for unstaged changes
    • Run git diff --cached --stat for staged changes
  1. Contributors (optional, for larger context): Run git shortlog -sn --all | head -10 to show top 10 contributors.

Output Format

Present the gathered information in a structured format:

## 📊 Git Repository Summary

### Current Branch & Status
- Branch: `<branch_name>`
- Status: <clean/dirty with X modified, Y staged, Z untracked>

### Recent Commits (Last 10)
<formatted commit list>

### Branches
- Local: <count> branches
- Remote: <count> branches
<list notable branches>

### Remotes
<list remotes with URLs>

### Uncommitted Changes
<summary of staged and unstaged changes>

Notes

  • If not in a git repository, inform the user and suggest initializing one with git init.
  • For large repositories, the contributor list may take a moment - warn the user if this is expected.
  • Always respect that some information may be sensitive - don't expose full URLs if they contain tokens.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 10:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

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

Agent Browser

matrixy
专为AI智能体优化的无头浏览器自动化CLI,支持无障碍树快照和基于引用的元素选择。
★ 425 📥 118,021
developer-tools

Gog

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