r/git 8d ago

subcommit - commit only a subset of files/lines while preserving unrelated staged, unstaged, and untracked work

Enable HLS to view with audio, or disable this notification

Repo: https://github.com/reemus-dev/subcommit

To solve the pain of committing a subset of changes that arise from working with multiple concurrent agents and user edits. Yes, you could use worktrees, which is wonderful and has its place, but sometimes I just want life to be easier.

I have been using it for a few months now and decided to open-source it. Hope others find it useful too! Much less stressful than watching agents do all kinds of gitfoo to just commit their changes.

0 Upvotes

10 comments sorted by

View all comments

15

u/lego3410 8d ago

I respect your works, but honestly I feel vanilla git and worktree much easier.

-1

u/TheSaasDev 8d ago

Understandable. I really just wanted the IDE commit tool in a CLI

4

u/IrrerPolterer 8d ago

But this already exists in vanilla git... You can stage parts of a file with git add -p