repo工具下载git clone https://review.mfunz.com/git-repo(将REPO_URL改成git-repo所在的路径),并让repo能在终端直接调用sudo cp repo /etc/bin/
[auth]
type = HTTP
发邮件地址设置
[sendemail]
smtpServer = smtp.163.com
smtpServerPort = 465
smtpEncryption = ssl
smtpUser = [email protected]
smtpPass = xxxxxxxxxxxx
sslVerify = false
from=CodeReview
这个邮箱负责给登录的用户发邮件,验证登录客户的邮件信息。
开启gerrit ./gerrit.sh start
停止gerrit ./gerrit.sh stop
gerrit出错信息保存路径 gerrit安装路径logs/error_log,最后的出错信息在文件结尾
第一个登录的用户就是管理员,每个用户第一次登录都要设置邮箱。root@HD:/home/w# ssh [email protected] -p 29418
**** Welcome to Gerrit Code Review ****
Hi admin, you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://admin@HD:29418/REPOSITORY_NAME.git
创建工程
ssh -p 29418 [email protected] gerrit create-project project_name(可用来推送已有的git工程)
删除工程 先安装插件(https://www.gaott.info/gerrit-delete-project/),然后
ssh -p 29418 [email protected] deleteproject delete --yes-really-delete --force xxxx