Re:Magit, the magical Git interface (2017)
by pault on Friday October 22, 2021 @04:57AM
(#28955051)
Open the diff, select the lines, right click, "stage selected lines".
[ Parent
| on HN ]
Re:Magit, the magical Git interface (2017)
by submeta on Friday October 22, 2021 @04:59AM
(#28955059)
But how do you select lines / changes spread all over the file? Doesn‘t work via Shift or Command click.
Actually it might require the gitlens extension. It's very well integrated and I've been using it for so long I don't know where one ends and the other begins. Regardless, if you open the diff view, the right hand side is editable and you can make selections like any other view.