git cherry pick - range of commits and exclude some in between

后端 未结 3 703
深忆病人
深忆病人 2020-12-24 13:34

I normally use the following git command to cherryppick a range of gerrits..no how do I exclude a couple gerrits in between.. can the below command be modified or is there o

3条回答
  •  攒了一身酷
    2020-12-24 14:02

    If you got problem during cherry-pick like below, try to choose starting hash one before than your original attempt was.

    git cherry-pick a005efa..1ece685
    [temp_4454kjerer3233 3520dd4] 3. xxx.
     1 file changed, 9 insertions(+)
    [temp_4454kjerer3233 791cec5] 4. xxx.
     3 files changed, 19 insertions(+)
    [temp_4454kjerer3233 2e95364] 5. xxx.
     2 files changed, 21 insertions(+)
    [temp_4454kjerer3233 59e38b9] 6. xxx.
     3 files changed, 61 insertions(+)
    error: could not apply a3b0c6b... 7. xxx.
    hint: after resolving the conflicts, mark the corrected paths
    hint: with 'git add ' or 'git rm '
    hint: and commit the result with 'git commit'
    

提交回复
热议问题