---
title: "Make Gerrit look for new repositories"
author: "scm002"
date: "2017-03-08T19:01:34Z"
tags: []
categories: ["开源软件"]
slug: "make-gerrit-look-for-new-repositories"
draft: false
lastmod: "2017-03-08T19:01:34Z"
id: 2361005
url: "https://scm002.iteye.com/blog/2361005"
---

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