什麼是 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