Back to browse
GitHub Repository

Hunk-by-hunk and line-by-line staging for git

75 starsPython

Git-stage-batch – curate clean commit history before pushing

by twelvenmonkeys·Apr 17, 2026·6 points·2 comments

AI Analysis

●●SolidNiche GemCozy

Git add -p but with line-level control inside hunks and batch operations across files.

Strengths
  • Line-level staging within hunks is more granular than git add -p's all-or-nothing approach.
  • State persistence lets you resume staging sessions across multiple terminal invocations.
  • Pure Python with zero dependencies means it works anywhere without installation friction.
Weaknesses
  • Audience is narrow — only developers who already care deeply about commit hygiene.
  • GUI git clients (Fork, GitKraken) already offer visual hunk staging for most users.
Target Audience

Developers who care about clean commit history

Similar To

git add -p · git-interactive-rebase

Post Description

Hunk-by-hunk and line-by-line staging for git, designed for building clean commit history!

Writing code is messy. Git history doesn't have to be.

During development we experiment, refactor, backtrack, and fix mistakes. If every step ends up as a commit, the history becomes noise. A curated history turns that process into a clear sequence of logical changes.

git-stage-batch helps you build that history incrementally by letting you stage changes hunk-by-hunk or line-by-line, shaping commits around meaning instead of the order the edits happened.

Similar Projects

Other●●Solid

Music from Your Git History

Git commits become drum hits and melodies — fun novelty, not a productivity tool.

Rabbit HoleCozyNiche Gem
adam_gyroscope
221mo ago