How to remove group and project in Gerrit
2. gerrit> deletefrom ACCOUNT_GROUP_NAMES where name=<groupname>;
3. gerrit> deletefrom ACCOUNT_GROUPS where name=<groupname>;
Project
1. access gerrit sql database
cmd: ssh -p 29418 192.168.0.1 gerritgsql
2. gerrit> deletefrom projects where name=<projectname>;
3. gerrit> deletefrom ref_rights where project_name=<projectname>;
4. go to folder /gerrit/review_site/git, remove<project name>.git
Example for remove project:
Step 1:
[email protected]:/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 thebuffer.
gerrit>
Step 2:
gerrit> deletefrom projects where name='rmproject';
UPDATE 1; 1 ms
Step 3:
gerrit> deletefrom ref_rightswhere project_name='rmproject';
UPDATE 1; 1 ms
Step 4:
[email protected]:/project/ecds/gerrit/review_site/git>ls
fproject.git rmproject.git
[email protected]:/project/ecds/gerrit/review_site/git>rm-rf rmproject.git/
[email protected]:/project/ecds/gerrit/review_site/git>ls
fproject.git
相關推薦
How to remove group and project in Gerrit
cmd: ssh -p 29418 192.168.0.1 gerritgsql 2. gerrit> deletefrom ACCOUNT_GROUP_NAMES where name=<groupname>; 3. gerrit> deletefrom ACCOUNT_GRO
How to use *args and **kwargs in Python
這篇文章寫的滿好的耶,結論: 1星= array, 2星=dictionary. 1星範例: def test_var_args(farg, *args): print "formal arg:", farg for arg in args: print "an
How to Plan an Engineering Project in 5 Easy Steps
Let’s start with a disclaimer: I am not a project planning expert. I’m not a certified scrum master or even a very organized person. I’m just a guy who’s b
How to Remove all Unused imports in a Java file
How to remove all unused imports in Eclipse Eclipse IDE gives warning "The import XXX is never used" whenever it detects unused import in a Java source
How to remove ROM cfg in MAME
/usr/share/games/mame/roms/ /usr/local/share/games/mame/roms/ sudo rm /usr/local/share/games/mame/roms/* sudo cp -r /home/cuthead/Downloads/* /usr/local
How to train your Neural Networks in parallel with Keras and Apache Spark
Apache Spark on IBM Watson StudioNow, we will finally train our Keras model using the experimental Keras2DML API. To be able to execute the following code,
How to enable HTTP Basic Authentication in Spring Security using Java and XML Config
In the last article, I have shown you how to enable Spring security in Java application and today we'll talk about how to enable Basic HTTP authentication
Nerd Fonts: How to install, configure, and remove programming fonts on a mac
Nerd Fonts: How to install, configure, and remove programming fonts on a macPatched programming fonts, such as Nerd Fonts, are those that have been amended
How to Remove A Service Entry From Win10 Service List
console hot list warn oba tor div register ever .warnbanner { width: 600px; background-color: #FFEFCE } .warnbanner.border { border: 0px
How To View the HTML Source in Google Chrome
inner eve spi together member mes mnt line split Whether you are new to the web industry or a seasoned veteran, viewing the HTML source o
How to Find Processlist Thread id in gdb !!!!!GDB 使用
ren openss lua comm lte ext htm out int https://mysqlentomologist.blogspot.jp/2017/07/ Saturday, July
How to remove the "Active" mark on partitions
nac code which diskpart mark selected chan mov lis Run "diskpart" DISKPART> list volume
How to Install The Latest Eclipse in Ubuntu 16.04, 15.10?
How to Install The Latest Eclipse in Ubuntu 16.04, 15.10? 1. Install Java Don’t have Java installed? Search for and install OpenJDK Java 7 or
SuiteScript Tutorial - How to use it and why use it?
What you will learn: What SuiteScript is? How to create a Script record in NetSuite? How to write and upload a JavaScript file? How to
How To Change Log Rate Limiting In Linux
ratelimit record cap reac systemctl evel rem mat mil By default in Linux there are a few different mechanisms in place that may rate limi
How to setup oAuth 1.0 in NetSuite RESTlet API 如何在NetSuite中設定RESTlet API的oAuth認證
步驟如下: 1. Got Restlet URL 訪問RESTlet的Deployment,這樣獲取WebService要Post或訪問到的具體URL地址, 如果你疑惑RESTlet是什麼,那要等我下一篇文章再介紹。 2. Setup Roles for Token user, goe
How to read version (and other) information from Android and iOS apps using Java
How to read version (and other) information from Android and iOS apps using Java https://medium.com/@mart.schneider/how-to-read-version-and-oth
[轉]How to display the data read in DataReceived event handler of serialport
本文轉自:https://stackoverflow.com/questions/11590945/how-to-display-the-data-read-in-datareceived-event-handler-of-serialport 問: I have the followin
How to remove popup on boot on Windows 2003
Administrative Tools\Manage Your Server\Add or remove a role\Add or Remove Programs Local Computer Policy\Computer Configuration\Administrative Templat
How to manually BEGIN and END transactions?
程式愈寫愈複雜,怕資料不一致,所以 connection 的 isolation_level 設到 None = auto commit mode. 雖然,沒有下 commit() 不會寫到 database 裡,但由於為了效能,我偷偷的把 connection 放在記憶體裡重覆使用,connection