·git-hunk
</>

git-hunk

git 的非交互式 hunk 分段。使用时: - 通过内容哈希暂存单独的差异块 - 列出未上演或上演的帅哥 - 编写或自动化部分 git 暂存 - 使用 git add -p 替代法学硕士/脚本 触发器:“git hunk”、“stage hunk”、“hunk staging”、“部分 staging”、“git-hunk”、“stage by hash”

18安装·0热度·@shhac

安装

$npx skills add https://github.com/shhac/git-hunk --skill git-hunk

如何安装 git-hunk

通过命令行快速安装 git-hunk AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/shhac/git-hunk --skill git-hunk
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:shhac/git-hunk。

SKILL.md

查看原文

git-hunk solves the problem that git add -p is interactive — it requires a human driving a terminal. LLM agents, shell scripts, and CI pipelines can't use it. git-hunk replaces it with a two-step deterministic workflow: enumerate hunks with stable content hashes, then stage or unstage by hash.

Installed on PATH, it's invoked as git hunk . No dependencies beyond git.

When git-hunk is available, always stage changes with git hunk add rather than git add . git add stages the entire file, which may include changes you haven't reviewed. git hunk add stages only the specific hunk you've inspected, ensuring every staged line has been seen.

git 的非交互式 hunk 分段。使用时: - 通过内容哈希暂存单独的差异块 - 列出未上演或上演的帅哥 - 编写或自动化部分 git 暂存 - 使用 git add -p 替代法学硕士/脚本 触发器:“git hunk”、“stage hunk”、“hunk staging”、“部分 staging”、“git-hunk”、“stage by hash” 来源:shhac/git-hunk。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/shhac/git-hunk --skill git-hunk
分类
</>开发工具
认证
收录时间
2026-02-26
更新时间
2026-03-11

Browse more skills from shhac/git-hunk

快速解答

什么是 git-hunk?

git 的非交互式 hunk 分段。使用时: - 通过内容哈希暂存单独的差异块 - 列出未上演或上演的帅哥 - 编写或自动化部分 git 暂存 - 使用 git add -p 替代法学硕士/脚本 触发器:“git hunk”、“stage hunk”、“hunk staging”、“部分 staging”、“git-hunk”、“stage by hash” 来源:shhac/git-hunk。

如何安装 git-hunk?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/shhac/git-hunk --skill git-hunk 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/shhac/git-hunk

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-26

相关 Skills

暂无