Hacker News new | ask | show | jobs
by adsche 4135 days ago
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.
2 comments

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.