管理员权限后台执行gerrit命令

管理员权限后台执行gerrit命令:

ssh -p 29418 管理员账号@IP地址 gerrit --help
gerrit [COMMAND] [ARG ...] [--] [--help (-h)]

 --          : end of options
 --help (-h) : display this help text

Available commands of gerrit are:

   apropos              Search in Gerrit documentation
   ban-commit           Ban a commit from a project's repository
   close-connection     Close the specified SSH connection
   create-account       Create a new batch/role account
   create-branch        Create a new branch
   create-group         Create a new account group
   create-project       Create a new project and associated Git repository
   flush-caches         Flush some/all server caches from memory
   gc                   Run Git garbage collection
   gsql                 Administrative interface to active database
   index
   logging
   ls-groups            List groups visible to the caller
   ls-members           List the members of a given group
   ls-projects          List projects visible to the caller
   ls-user-refs         List refs visible to a specific user
   plugin
   query                Query the change database
   receive-pack         Standard Git server side command for client side git push
   rename-group         Rename an account group
   review               Apply reviews to one or more patch sets
   set-account          Change an account's settings
   set-head             Change HEAD reference for a project
   set-members          Modify members of specific group or number of groups
   set-project          Change a project's settings
   set-project-parent   Change the project permissions are inherited from
   set-reviewers        Add or remove reviewers on a change
   show-caches          Display current cache statistics
   show-connections     Display active client SSH connections
   show-queue           Display the background work queues
   stream-events        Monitor events occurring in real time
   test-submit
   version              Display gerrit version
ssh -p 29418 管理员账号@IP地址 gerrit set-account -h
 USER                     : full name, email-address, ssh username or account id
 --                       : end of options
 --active                 : set account's state to active
 --add-email EMAIL        : email addresses to add to the account
 --add-ssh-key -|KEY      : public keys to add to the account
 --clear-http-password    : clear HTTP password for the account
 --delete-email EMAIL     : email addresses to delete from the account
 --delete-ssh-key -|KEY   : public keys to delete from the account
 --full-name NAME         : display name of the account
 --generate-http-password : generate a new HTTP password for the account
 --help (-h)              : display this help text
 --http-password PASSWORD : password for HTTP authentication for the account
 --inactive               : set account's state to inactive
 --preferred-email EMAIL  : a registered email address from the account

例:
设置某个账号的邮箱

ssh -p 29418 管理员账号@gerrit _IP地址 gerrit set-account --add-email 邮箱 需设置邮箱的账号

例:
ssh -p 29418 admin@localhost gerrit set-account --add-email admin@163.com admin

给某个提交verified +1

ssh -p 29418 管理员账号@gerrit _IP地址 gerrit review -m "提交相关信息" --label "Verified=+1" change的SHA1值

例:
ssh -p 29418 admin@localhost gerrit review -m "verify+1" --label "Verified=+1" 60d8ac54ba51253ffd6ed49a27497c4bf35a65bb

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值