在Bug fix时,用git review向gerrit提交代码,遇到如下问题:
You have more than one commit that you are about to submit.
The outstanding commits are:
5dc6eeb (HEAD, Bug1309986) Add unit test for keypair's api
d10e307 (review/zhengguang_ou/Bug1307338) Fix the incorrect return messages in keypair-show and keypair-delete
Is this really what you meant to do?
从提示信息中可以看出,我有两个commit要被提交,如果选择输入“yes",

在使用git review提交代码时遇到错误:'You have more than one commit that you are about to submit.'。原因是创建新分支时从错误的分支出发。通过git rebase调整commit依赖关系,重新组织提交历史,确保只提交预期的commit。
2万+

被折叠的 条评论
为什么被折叠?



