Git 致力于gerrit方法
将提交合并到gerrit中的最佳方法是什么? 问题如下:Git 致力于gerrit方法,git,gerrit,Git,Gerrit,将提交合并到gerrit中的最佳方法是什么? 问题如下: 对于小故事,我需要最多提交两次。到目前为止,我的审核失败了两次,现在是我第三次需要提交,我最多需要2个补丁集,而不是3个。我的做法如下: 如果是第一次,提交+审阅。就这么简单 第二,第三,等等,我提交,然后创建一个回顾分支并进行挤压。 您应该看到这样的内容: $ git rebase -i HEAD~4 pick 01d1125 Do smth s 6340aah Do smth 2 s ebfd369 Do smth 3 s 30
对于小故事,我需要最多提交两次。到目前为止,我的审核失败了两次,现在是我第三次需要提交,我最多需要2个补丁集,而不是3个。我的做法如下:
如果是第一次,提交+审阅。就这么简单
第二,第三,等等,我提交,然后创建一个回顾分支并进行挤压。
您应该看到这样的内容:
$ git rebase -i HEAD~4
pick 01d1125 Do smth
s 6340aah Do smth 2
s ebfd369 Do smth 3
s 30e0ccb Fixed the review.
# Rebase 60709da..30e0ccb onto 60709da
#
# Commands:
# p, pick = use commit
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#