3 ms·
> Like how easy is it to selectively stage portions of files in the git CLI? git add -p Then you can decide if each hunk is staged or not.
by saghul 5y ago
> Like how easy is it to selectively stage portions of files in the git CLI?
git add -p
Then you can decide if each hunk is staged or not.
- feffe 5y agoCool, didn't know about that. To boost Magit a bit, you can stage parts of patch hunks, I use that quite a bit. Just select any parts of the diff using regular edit text select commands and press "s" for stage.
- angio 5y agoIn my experience magit version is much faster to use since you can simply select which lines you want to stage without having to refine the hunk.
- ljm 5y agoNot even just lines - you can selectively stage arbitrary regions too.