git cherry pick代码

1.在原分支上找到对应的commit

2.在gerrit上搜索对应的patch,复制cherry pick 链接,并在新的分支上执行cherry pick

3.git commit --amend

4.git review -r origin stable/5.0


提交review过程中,可能出现如下问题

remote: Resolving deltas: 100% (11/11)
remote: Processing changes: new: 1, refs: 1, done    
remote:
remote: New Changes:
remote:   http://review.****.cn/14634 ESFIX:*****
remote:
To ssh://****@review.***cn:29418/****/cinder
 * [new branch]      HEAD -> refs/publish/stable/5.0/bp/s

处理方法

1. git commit --amend

 删除change-id

2.git review -r origin stable/5.0

你可能感兴趣的:(git cherry pick代码)