使用Gerrit set-account命令可以对Gerrit用户进行配置、查询信息等操作
帮助命令:ssh -p 29418 user@192.168.1.1 gerrit set-account --help
gerrit set-account USER [--] [--active] [--add-email EMAIL] [--add-ssh-key -|KEY] [--clear-http-password] [--delete-email EMAIL] [--delete-ssh-key -|KEY] [--full-name NAME] [--generate-http-password] [--help (-h)] [--http-password PASSWORD] [--inactive] [--preferred-email EMAIL] [--trace] [--trace-id VAL]
USER : full name, email-address, ssh username or account id
-- : end of options (default: false)
--active : set account's state to active (default: false)
--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 (default: false)
--delete-email EMAIL : email addresses to delete from the account
--delete-ssh-key -|KEY : public keys to delete from the acc

本文介绍了如何使用Gerrit的set-account命令来管理用户,包括设置用户状态、添加和删除电子邮件、SSH密钥,生成HTTP密码等操作。示例中展示了生成用户HTTP密码、添加publickey以及配置SSH连接的步骤。此外,还提到了通过Git操作删除Gerrit用户的方法。
最低0.47元/天 解锁文章
890

被折叠的 条评论
为什么被折叠?



