什么是 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 分段。使用时: - 通过内容哈希暂存单独的差异块 - 列出未上演或上演的帅哥 - 编写或自动化部分 git 暂存 - 使用 git add -p 替代法学硕士/脚本 触发器:“git hunk”、“stage hunk”、“hunk staging”、“部分 staging”、“git-hunk”、“stage by hash”
通过命令行快速安装 git-hunk AI 技能到你的开发环境
来源:shhac/git-hunk。
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-hunkgit 的非交互式 hunk 分段。使用时: - 通过内容哈希暂存单独的差异块 - 列出未上演或上演的帅哥 - 编写或自动化部分 git 暂存 - 使用 git add -p 替代法学硕士/脚本 触发器:“git hunk”、“stage hunk”、“hunk staging”、“部分 staging”、“git-hunk”、“stage by hash” 来源:shhac/git-hunk。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/shhac/git-hunk --skill git-hunk 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/shhac/git-hunk