Make Gerrit look for new repositories

Command line alternative

Copy bare Git repository into ~/gerrit_testsite/git/myproject.git

Make Gerrit look for new repositories:

$ ssh -p 29418 alexadmin@localhost gerrit flush-caches --cache project_list

创建或copy了新的.git库到gerrit server上后,如果想要在gerrit页面看到,必须重启gerrit才能生效。

运行此命令后,即可在gerrit页面看到,不需要重启gerrit.

$ ssh -p 29418 alexadmin@localhost gerrit flush-caches --cache project_list

猜你喜欢

转载自scm002.iteye.com/blog/2361005