重设 Gitlab root 密码

1
2
3
gitlab-rails console production
或者
sudo -u git -H bundle exec rails console production

进行修改

1
2
3
4
user = User.where(id: 1).first
user.password = 'secret_pass'
user.password_confirmation = 'secret_pass'
user.save!