gitlab重置root的密码


-sh-4.2$ gitlab-rails console production
-------------------------------------------------------------------------------------
 GitLab:       12.0.3 (08a51a9db93)
 GitLab Shell: 9.3.0
 PostgreSQL:   10.7
-------------------------------------------------------------------------------------
Loading production environment (Rails 5.1.7)
irb(main):001:0> user = User.where(id: 1).first
=> #<User id:1 @root>
irb(main):004:0> user.password=12345678
=> 12345678
irb(main):005:0> user.save!
Enqueued ActionMailer::DeliveryJob (Job ID: 60439440-6443-46d1-acda-e29172be146a) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007f09e949b958 @uri=#<URI::GID gid://gitlab/User/1>>
=> true
irb(main):006:0> exit
-sh-4.2$ exit
[root@qas-k8s-gitlab gitlab]# gitlab-ctl restart
ok: run: alertmanager: (pid 43507) 0s
ok: run: gitaly: (pid 43523) 0s
ok: run: gitlab-monitor: (pid 43542)
————————————————

原文地址

github提示-Key is already in use

ERROR: Permission to xxxxxxx.git denied to deploy key
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

自己的ssh-key已在某个库中使用了, 如果你是想在自己当前的账号下的多个库用同一个key的话那么就把自己的key放到账号中.

github网站 -- 点击右上角头像 -- settings -- SSH and GPG keys -- New SSH key

v2ex-BB