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

 

After creating or copying a new .git library to the gerrit server, if you want to see it on the gerrit page, you must restart gerrit to take effect.

After running this command, you can see it on the gerrit page, no need to restart gerrit.

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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326606000&siteId=291194637