+ bbb
- aaa
# ---
# To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed.
#
# If the patch applies cleanly, the edited hunk will immediately be
# marked for staging. If it does not apply cleanly, you will be given
# an opportunity to edit again. If all lines of the hunk are removed,
# then the edit is aborted and the hunk is left unchanged.
Semplicemente non capisco cosa voglia dire make them ' ' lines
. Come applicare solo + bbb
ma non - aaa
?git hunk edit mode - come rimuovere una linea '-'?
messaggio molto didattico ... – jacktrades
Per aggiungere a questo, se modificate con 'vim' e si desidera massa sostituire su più righe, ad esempio, , 7-200, il seguente comando dovrebbe fare: ': 7.200s/^ -//'. Questa espressione regolare cerca un singolo '-' all'inizio di ogni riga nell'intervallo specificato e la sostituisce con un singolo spazio. – Adama
Fantastico, non ho idea di cosa fare fino a quando non ho visto questa risposta. Grazie –