解决“You have more than one commit that you are about to submit.”

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

Bug fix时,用git reviewgerrit提交代码,遇到如下问题:

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", 这两个commit就会被提交上去,这可不是我想要的,因为我在另一个分支

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值