Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ~/code 文件夹中有一个本地 repo 项目,并且我在这台服务器机器中也有一个 gerrit(假设它的 ip 是 192.168.136.11),我怎样才能将此本地 repo 移动到 gerrit 中,因为我们想使用 gerrit 来审查开发人员推送新代码时的代码。
将 repo 的 .git 文件夹移动到 gerrit 的 git 文件夹
$ mv -r ~/code/.git $GERRIT_HOME/git/
重启gerrit
$ GERRIT_HOME/bin/gerrit.sh restart
现在应该更新了。
重新启动服务可能需要超级用户权限。