使用ssh添加用户
ssh name@localhost -p 29418 gerrit create-account username --email username@email --full-name userfullname --http-password httppassword
在gerrit的安装目录使用htpasswd添加用户:
htpasswd -m htpasswd.conf username
用gerrit sql 添加用户
ssh name@localhost -p 29418 gsql
insert into account_external_ids(account_id, email_address, password, external_id)values(id,null,null,'gerrit:username');
参考: