force git to accept cherry-pick's changes

后端 未结 4 1914
暗喜
暗喜 2020-12-23 09:28

I did cherry-pick from a gerrit review in my branch. In gerrit code review, I have two patch sets and I cherry-picked patch one before, so now I want to do the second patch

4条回答
  •  一个人的身影
    2020-12-23 09:41

    you could brute force it with something like this:

    git show cb1e6a:path/to/filename > path/to/filename
    git add path/to/filename
    git commit
    

    but I'm sure there's an easier way.

提交回复
热议问题