问题描述
一个简单的例子。我对Gerrit进行了更改,这会打破CI构建或者审阅者不满意。
然后我用另一个提交修改我的更改。在很多情况下,这是一个小的补丁集,我不想要一个新的gerrit review,而是作为原始评论中的一个新补丁集。
我知道这可以是使用ammend或rebasing和squashin完成。
这是唯一的选择吗?我们有点担心必须使用rebasing和压扁来重写历史。
谢谢,
Giao。
A simple example. I commit a change to Gerrit, which breaks the CI build or a reviewer is not satisfied.I then fix my change with another commit. In many cases this is small patch set for which I do not want a new gerrit review but rather as a new patch set in the original review.
I know this can be achived using ammend or rebasing and squashin.
Is this the only options? We are a little bit concerned about having to rewrite history using rebasing and squashing.
Thanks,
Giao.
git commit --amend works pretty well; that how we do it most of the time.
这篇关于是否可以在不修改/压缩提交的情况下将补丁集添加到Gerrit评论中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!