Hacker News new | ask | show | jobs
by howToTestFE 192 days ago
I find the jetbrains IDEs (like Webstorm) has the best UI interface for this. Selectively commit specific lines from your changes.
4 comments

For VSCode-based editors I am a happy user of the "Stage selected ranges" command
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.
How about git-crecord?
magit can do that too.
Lazygit can do that too.
SmartGit can do that too
git-gui can do that too
For all the others, that is the built-in GUI.
tig can do that too