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

后端 未结 5 1772
不知归路
不知归路 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:24

    I usually get merge conflicts from the git stash pop described in @Dan's answer. See git stash and edited hunks for a solution that avoids the conflicts.

提交回复
热议问题