Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 致力于gerrit方法_Git_Gerrit - Fatal编程技术网

Git 致力于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

将提交合并到gerrit中的最佳方法是什么? 问题如下:

对于小故事,我需要最多提交两次。到目前为止,我的审核失败了两次,现在是我第三次需要提交,我最多需要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.
#