Hacker News new | ask | show | jobs
by joefreeman 4133 days ago
The main thing I like about SourceTree is that it makes it easy to stage 'hunks', or select lines to stage. I also like that (as with UIs in general) it makes it a bit harder to make mistakes (by, for example, typing the wrong flag on the command line).

But it's become unbearably slow. I really wish they'd fix this.

2 comments

Do you know about `git add -p`? That allows you to stage hunks or lines interactively in the terminal. Press `s` to split a hunk, `y`/`n` to stage or not stage.
This is a much more trivial task with SourceTree.
Did you try vim-fugitive? Especially with git gutter.
I was aware there was something similar on the command line, but hadn't explored the details. This doesn't sounds as convenient as (a hypothetical responsive) SourceTree, but thanks for the pointers.
Have you tried [Git Cola](https://git-cola.github.io/)? It has support for staging chunks/selections.