I wish to discard the changing in selected lines.
If I do understand you correctly, this already works exactly the way you described it. Of course only for not yet commited changes.
@milkman Thanks for your reply. Maybe I’m missing something. I know how to discard a “hunk”. But now I wish to split the hunk in a piece that I would like to keep and a piece that I would like to discard.
When you select a line in the hunk the “stage/discard” buttons switch to “stage/discard lines”
Awesome! Thanks, I missed it.