Git 如何推动审查?

Git 如何推动审查?,git,push,gerrit,review,Git,Push,Gerrit,Review,我想将一些代码更改推送到远程存储库进行审查。我们正在使用gerrit。我该怎么办 我试图安装git review并使用它,但我遇到了很多错误,当我尝试安装git review时 git push origin HEAD:refs/for/master 我得到: missing Change-Id in message hook Gerrit服务器配置为要求在提交消息中使用更改Id 您需要在提交中添加更改Id行,然后重新执行“push”命令。要自动添加更改Id,您需要在本地存储库上安装“com

我想将一些代码更改推送到远程存储库进行审查。我们正在使用gerrit。我该怎么办

我试图安装git review并使用它,但我遇到了很多错误,当我尝试安装git review时

git push origin HEAD:refs/for/master
我得到:

missing Change-Id in message hook

Gerrit服务器配置为要求在提交消息中使用更改Id

您需要在提交中添加更改Id行,然后重新执行“push”命令。要自动添加更改Id,您需要在本地存储库上安装“commit msg”钩子

1) 安装“commit msg”钩子

2) 将更改Id添加到提交消息中

git commit --amend
3) 将新提交推给Gerrit

git push origin HEAD:refs/for/master

请参阅Gerrit文档中有关更改Id的更多信息。

您的Gerrit服务器配置为在提交消息中要求更改Id

您需要在提交中添加更改Id行,然后重新执行“push”命令。要自动添加更改Id,您需要在本地存储库上安装“commit msg”钩子

1) 安装“commit msg”钩子

2) 将更改Id添加到提交消息中

git commit --amend
3) 将新提交推给Gerrit

git push origin HEAD:refs/for/master
请参阅Gerrit文档中有关更改ID的更多信息。

可能重复的可能重复的