Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



In 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.


Not even just lines - you can selectively stage arbitrary regions too.


Cool, 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: