+ 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.

我只是不明白 make them ' ' lines 是什么意思。如何仅应用 + bbb 而不是 - aaa

最佳答案

make them ' ' lines 表示您需要将行前的 - 替换为 (空格)。

关于git hunk 编辑模式 - 如何删除 '-' 行?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10731269/

10-13 09:14