·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

暫無