Hacker News new | ask | show | jobs
by arghimonmobile 3581 days ago
You'd probably really like Magit mode for Emacs then. What you're describing with interactive add becomes trivial since you can stage parts of the diff by selecting them in a region. I can hardly live without Magit these days. Bonus is that it even works on remote hosts via tramp. </emacs plug>
2 comments

<vim plug>With the vim-gitgutter plugin installed, you can dynamically add/remove/undo hunks without even leaving the editor[0]. I use this instead of `git add -p` nowadays</vim plug>

[0]: https://github.com/airblade/vim-gitgutter#getting-started

<spacemacs plug />
I can enthusiastically second this recommendation. If you use Emacs and Git, but have not yet tried Magit, you are missing out.