我正在尝试设置Gerrit代码审查服务器。 我已经安装了Gerrit服务器,可以在本地主机 localhost:8080
上访问它。
我还安装了gerrit git review
。
提交文件更改后,当我执行git push origin master
时,会得到以下信息:
dev> git push origin master
Counting objects: 17, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 621 bytes | 0 bytes/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote: Resolving deltas: 100% (3/3)
remote: Processing changes: refs: 1, done
To ssh://newbie@localhost:29418/dev.git
ac19936..de7d7ea master -> master
当我执行
git review
时,我会得到以下结果。dev> git review
remote: Resolving deltas: 100% (1/1)
remote: Processing changes: new: 1, refs: 1, done
remote:
remote: New Changes:
remote: http://localhost:8080/6 this is a check on gerrit code review with git review
remote:
To ssh://newbie@localhost:29418/dev.git
* [new branch] HEAD -> refs/publish/master
只有在我执行 git review
命令时,我才能得到链接 http://localhost:8080/6
,用于本地主机上的代码审查。我想在执行 git push
命令时也能获取该代码审查链接。请问如何获取?是否有人可以帮助我。