Manual hunk editing in git interactive mode
- by kRON
In manual hunk edit mode, the docs say this:
# To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed.
What I don't understand is how to remove '-' lines.
Say if I had had this bit of code:
Alfa
Bejta
And I've edited it in my working tree to:
Alpha
Beta
The diff is:
- Alfa
- Bejta
+ Alpha
+ Beta
How do I edit the hunk to only commit the modifications to the first line?
I've tried these:
- Alfa
Bejta
+ Alpha
- Alfa
+ Alpha
Bejta
to no avail.