Hacker News new | ask | show | jobs
by mr_mitm 107 days ago
Staging single lines or hunks is also much easier in a TUI/GUI. I wouldn't even know how to do it with just git.
1 comments

git add -p
Operates on hunks, which may at times be multiple lines that cannot be split further
oftentimes splitting the hunks with `s` is enough.
You can edit a hunk with `e`. Clunky but it works.
In a conversation about magit, this is comparing jumping off a sidewalk to powered flight.