How to Conclude a Git Cherry-Pick?

前端 未结 5 1254
猫巷女王i
猫巷女王i 2021-01-01 08:41

Yesterday I cherry-picked two commits into my main branch, one of them caused merge conflicts and I resolved them, committed and pushed them to origin. Today I am attempting

5条回答
  •  庸人自扰
    2021-01-01 09:07

    Another option: with Git 2.23 (Q3 2019), a git cherry-pick --continue will actually work!

    When one step in multi step cherry-pick or revert is reset or committed, the command line prompt script failed to notice the current status, which has been improved.

    See commit e981bf7 (01 Jul 2019) by Phillip Wood (phillipwood).
    (Merged by Junio C Hamano -- gitster -- in commit 8a4acc5, 19 Jul 2019)

    git-prompt: improve cherry-pick/revert detection

    If the user commits or resets a conflict resolution in the middle of a sequence of cherry-picks or reverts then CHERRY_PICK_HEAD/REVERT_HEAD will be removed and so in the absence of those files we need to check .git/sequencer/todo to see if there is a cherry-pick or revert in progress.

    See if a cherry-pick or revert is in progress, if the user has committed a conflict resolution with 'git commit' in the middle of a sequence of picks or reverts then CHERRY_PICK_HEAD/REVERT_HEAD will not exist so we have to read the todo file.

提交回复
热议问题