git-surgeon
CommunityHunk-level git control
Software Engineering#git#developer tools#version control#git operations#hunk staging#commit manipulation
Authorluan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides granular control over Git operations at the hunk level, allowing for precise staging, unstaging, discarding, and even splitting of commits without affecting entire files.
Core Features & Use Cases
- Hunk-level Staging/Unstaging: Selectively stage or unstage specific hunks of changes within a file.
- Discarding Changes: Discard specific hunks from your working directory.
- Commit Splitting & Rewording: Split existing commits into new ones or reword them with fine-grained control.
- Undoing Changes: Undo specific hunks from a given commit, reverting them to the working tree.
- Use Case: You've made several unrelated changes in one file and only want to commit a subset of them.
git-surgeonallows you to precisely select and stage only the desired hunks for your commit.
Quick Start
Use git-surgeon to stage hunks with IDs 123 and 456.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: git-surgeon Download link: https://github.com/luan/dot-claude/archive/main.zip#git-surgeon Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.