Re:Using Git add -p for fun (and profit)
by howToTestFE on Sunday December 14, 2025 @09:06AM
(#46263058)
I find the jetbrains IDEs (like Webstorm) has the best UI interface for this.
Selectively commit specific lines from your changes.
[ Parent
| on HN ]
Re:Using Git add -p for fun (and profit)
by rogerbinns on Sunday December 14, 2025 @09:57AM
(#46263485)
Another excellent GUI is gitg. You can select specific lines for staging, but also for discarding. The latter is especially useful for temporary debug only changes that you want to throw away.
Re:Using Git add -p for fun (and profit)
by felubra on Sunday December 14, 2025 @10:05AM
(#46263529)
For VSCode-based editors I am a happy user of the "Stage selected ranges" command
Re:Using Git add -p for fun (and profit)
by kapacuk on Sunday December 14, 2025 @09:13AM
(#46263119)
magit can do that too.
Lazygit can do that too.
Re:Using Git add -p for fun (and profit)
by gear54rus on Sunday December 14, 2025 @10:02AM
(#46263512)
SmartGit can do that too
git-gui can do that too
Re:Using Git add -p for fun (and profit)
by 1718627440 on Sunday December 14, 2025 @11:05AM
(#46264035)
For all the others, that is the built-in GUI.
Re:Using Git add -p for fun (and profit)
by skydhash on Sunday December 14, 2025 @10:36AM
(#46263787)
tig can do that too
Re:Using Git add -p for fun (and profit)
by andrewshadura on Sunday December 14, 2025 @09:30AM
(#46263259)
How about git-crecord?