`
scm002
  • 浏览: 318660 次
社区版块
存档分类
最新评论

How to remove group and project in Gerrit ?

 
阅读更多

Group
1. access gerrit sql database
   cmd: ssh -p 29418 150.236.40.165 gerrit gsql
2. gerrit> delete from ACCOUNT_GROUP_NAMES where name='group name';
3. gerrit> delete from ACCOUNT_GROUPS where name='group name';

Project
1. access gerrit sql database
   cmd: ssh -p 29418 150.236.40.165 gerrit gsql
2. gerrit> delete from projects where name=<project name>;
3. gerrit> delete from ref_rights where project_name=<project name>;
4. go to folder /gerrit/review_site/git, remove <project name>.git

Example for remove project:
Step 1:
ecdshawk@mtvserver2:/project/ecds/gerrit/review_site/db>ssh -p 29418 150.236.40.165 gerrit gsql
Welcome to Gerrit Code Review 2.1.6.1
(H2 1.2.134 (2010-04-23))
 
Type '\h' for help.  Type '\r' to clear the buffer.
 
gerrit>
 
Step 2:
gerrit> delete from projects where name='rmproject';
UPDATE 1; 1 ms
 
Step 3:
gerrit> delete from ref_rights where project_name='rmproject';
UPDATE 1; 1 ms

Step 4:
ecdshawk@mtvserver2:/project/ecds/gerrit/review_site/git>ls
fproject.git  rmproject.git
ecdshawk@mtvserver2:/project/ecds/gerrit/review_site/git>rm -rf rmproject.git/
ecdshawk@mtvserver2:/project/ecds/gerrit/review_site/git>ls
fproject.git

Note: The projects is removed from database with Gerrit version 2.2. The method is simply. Delete project folder from Gerrit repo folder directly and restart Gerrit service.

分享到:
评论

相关推荐

    gerrit-3.0.3.war

    Utility script remove-notedb-refs.sh which can be used to remove all refs created for NoteDb in case of rollback to ReviewDb. Issue 11356: Allow to override autodetected Lucene index configuration. ...

    gerrit-2.16.7.tar.gz

    Gerrit is a code review and project management tool for Git based projects.附件是最新版本gerrit的源码,可以进行源码的直接安装。

    Gerrit搭建及权限配置.docx

    创建Project是Gerrit权限配置的必要步骤。需要创建Project,并设置权限。 服务器端创建文件夹 服务器端创建文件夹是Gerrit权限配置的必要步骤。需要创建文件夹来当做远程仓库。 客户端创建本地仓库 客户端创建...

    gerrit使用文档手册,适合新手学习gerrit

    Gerrit 使用文档手册,适合新手学习 Gerrit Gerrit 是一个基于 Web 的代码レビュー工具,用于管理代码的提交和审核。下面是 Gerrit 使用文档手册的知识点总结: 一、获取权限 在使用 Gerrit 之前,需要获取权限,...

    windows搭建git审核平台.zip_Gerrit _gerrit windows_windows+gerrit

    在本文中,我们将深入探讨如何在Windows环境下搭建一个基于Git的代码审核平台——Gerrit。Gerrit是一个开源的代码审查系统,它允许开发者提交代码,并通过一个交互式的Web界面进行审查,确保代码的质量和一致性。...

    gerrit的配置和使用

    Gerrit是一种基于Web的代码审查工具,主要功能是允许团队成员之间审阅对方代码的修改,以决定是否应该提交这些更改。Gerrit使用Git作为其底层的版本控制系统,允许开发者使用Git的标准命令行工具来提交代码。由于...

    Gerrit 用户指南_Gerrit_

    《Gerrit 用户指南》是一本专为Gerrit用户量身定制的详细教程,旨在帮助用户深入理解和熟练使用Gerrit代码审查系统。Gerrit是一款基于Web的开源工具,广泛应用于Git版本控制系统中的代码审核流程,尤其在开放源码...

    gerrit-3.6.1安装包

    gerrit-3.6.1安装包

    Gerrit 配置

    但我可以根据标题“Gerrit 配置”和描述“Gerrit 中文配置使用”,以及标签“code review”,来梳理出Gerrit配置和使用相关的核心知识点。 Gerrit是一个基于Web的代码审查工具,它与Git版本控制系统紧密集成,用于...

    google repo工具

    Note: There is a slight mirroring lag between when a change is visible on the web in Gerrit and when repo download will be able to find it for all users, because of replication delays to all servers ...

    GERRIT使用手册.pdf

    ### Gerrit使用手册知识点概述 本手册主要围绕Gerrit的使用流程展开,从环境搭建、注册秘钥、下载及管理代码库等方面进行了详细介绍。以下将根据提供的文档内容,逐条解析并拓展其中的关键知识点。 #### 一、本地...

    gerrit搭建相关说明

    java -jar gerrit-2.8.6.war init --batch -d /path/to/gerrit/installation ``` 7. 配置Gerrit以使用MySQL数据库: 修改`/path/to/gerrit/installation/etc/gerrit.config`中的数据库配置: ``` [database] ...

    gerrit.war包

    Gerrit.war包是Gerrit Code Review系统的Web应用程序包。Gerrit是一个开源的代码审查和协作代码管理系统,广泛应用于Git版本控制环境中。它提供了便捷的代码审核流程,帮助开发者确保代码质量和团队协作效率。 ...

    从远端下载repo镜像,然后推送到本地gerrit服务器

    $ repo forall -c 'ssh -p29418 &lt;username&gt;@192.168.3.6 gerrit set-project-parent --parent=projectA projectA/$REPO_PROJECT' ``` 使用此命令可以为每个项目设置继承自`projectA`的权限。这对于统一管理多个...

    gerrit-2.15.3.war

    This release includes a fix for the file handle leak when GC is scheduled, improvements in Elasticsearch integration, and various other fixes and improvements. Please see the release notes for ...

    Gerrit代码审查工具 v3.9.1.zip

    Gerrit是一款强大的开源代码审查工具,主要用于协作开发和代码质量管理。它的主要功能是提供一个平台,让开发者可以在提交代码到主仓库之前进行讨论、审查和修改,从而提高代码质量和团队协作效率。Gerrit v3.9.1是...

    Learning Gerrit Code Review

    agile methodologies that worked well enough with co-located teams now need to be empowered with additional tools such as Gerrit code review to allow the developers to share, discuss, and cooperate in...

    git+repo+gerrit代码服务器搭建

    1. 使用 `sudo adduser --system --shell /bin/sh --gecos 'git SCM user' --group --disabled-password --home /home/git git` 创建用户 git。 2. 将用户 git 设置为 Gitosis 的管理员。 生成 Admin 端的公钥 ...

    Gerrit 开发人员手册

    Gerrit 开发人员手册提供了详细的安装、配置和使用 Gerrit 的指南,涵盖了 Git 客户端的安装、密钥对的生成、EGit 的配置、Git 配置、登录 Gerrit、从 Gerrit 上 Clone 仓库、Commit 变更、Push 到 Gerrit、Egit ...

    gerrit-3.5.1

    Gerrit 是一个开源的代码审查和协作代码管理系统,它基于 Git 版本控制系统构建,旨在提高软件开发团队的工作效率和代码质量。标题中的 "gerrit-3.5.1" 指的是 Gerrit 的一个特定版本,即 3.5.1 版本。这个版本包含...

Global site tag (gtag.js) - Google Analytics