How to edit Git “add patch” hunks/diffs/lines during selective staging?

后端 未结 5 1730
不知归路
不知归路 2020-12-28 14:33

I have a source file where 2 features have been added. In order to allow cherry-picking, I\'d like to commit that in 2 phases: one for each feature. Until now, in similar si

5条回答
  •  自闭症患者
    2020-12-28 15:19

    There are Git GUIs that will let you select individual lines that you want to stage, allowing you to split lines that you normally wouldn't be able to using the regular git add --patch from the command line.

    Two such GUIs are:

    1. SourceTree.
    2. Git Cola.

提交回复
热议问题