[英]How to see gitlab users by command?
I installed gitlab on ubuntu, how can I see gitlab users by command?我在 ubuntu 上安装了 gitlab,如何通过命令查看 gitlab 用户?
Following command find root user, but I do not know user name?以下命令查找root用户,但我不知道用户名?
user = User.find_by(username: "root")
What do you want to find user.你想找什么用户。 If you forget root password you can find it by ID如果您忘记了root密码,您可以通过ID找到它
user = User.find(1)
Gitlab support Find the user either by username, user ID or email ID: Gitlab 支持通过用户名、用户 ID 或 email ID 查找用户:
user = User.find_by_username 'exampleuser'
#or
user = User.find(123)
#or
user = User.find_by(email: 'user@example.com')
documentary in docs.gitlab.com/reset_user_passworddocs.gitlab.com/reset_user_password中的纪录片
#git config —global —list #git config --global --list
To list the user associated with github/gitlab列出与 github/gitlab 关联的用户
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.