返回顶部
g

git-summary Git仓库概览

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

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

git-summary

技能名称: git-summary
详细描述:

Git 摘要技能

本技能提供当前 Git 仓库状态的全面概览。

使用方法

当用户请求 Git 摘要、仓库概览或希望了解 Git 项目的当前状态时,请使用终端运行以下命令,并以清晰有序的格式呈现结果。

操作说明

  1. 1. 仓库状态:运行 git status --short --branch 获取当前分支和工作目录状态。
  1. 2. 最近提交:运行 git log --oneline -10 --decorate 显示最近 10 次提交及其分支/标签装饰信息。
  1. 3. 分支概览:运行 git branch -a --list 列出所有本地和远程分支。
  1. 4. 远程信息:运行 git remote -v 显示已配置的远程仓库。
  1. 5. 未提交更改摘要
- 运行 git diff --stat 查看未暂存的更改 - 运行 git diff --cached --stat 查看已暂存的更改
  1. 6. 贡献者(可选,用于更大范围):运行 git shortlog -sn --all | head -10 显示前 10 位贡献者。

输出格式

以结构化格式呈现收集到的信息:

📊 Git 仓库摘要

当前分支与状态

  • - 分支:<分支名称>
  • 状态:<干净/有 X 处修改、Y 处暂存、Z 处未跟踪>

最近提交(最近 10 次)

<格式化提交列表>

分支

  • - 本地:<数量> 个分支
  • 远程:<数量> 个分支
<列出主要分支>

远程仓库

<列出远程仓库及其 URL>

未提交更改

<已暂存和未暂存更改的摘要>

注意事项

  • - 如果不在 Git 仓库中,请告知用户并建议使用 git init 初始化一个。
  • 对于大型仓库,贡献者列表可能需要一些时间——如果预计会有延迟,请提醒用户。
  • 始终注意某些信息可能敏感——如果 URL 包含令牌,不要暴露完整 URL。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-summary-1776360117 技能

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

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

通过命令行安装

skillhub install git-summary-1776360117

下载

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

文件大小: 1.61 KB | 发布时间: 2026-4-17 14:55

v1.0.0 最新 2026-4-17 14:55
Initial release – provides a summary of the current Git repository.

- Summarizes branch and status, recent commits, branches, remotes, and contributors.
- Offers step-by-step instructions for each summary area.
- Organizes all output for clarity and ease of use.
- Alerts users if not in a Git repo and gives guidance for initialization.
- Considers privacy by warning about sensitive information in remote URLs.

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

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

p2p_official_large
返回顶部