step:
1. Log in to the server where the Github, switch users to git: su git
2. Go to the Rails Github console: gitlab-rails console production
3. See super administrator: user = User.where (id: 1) .first returns the result as follows:
![](https://img2018.cnblogs.com/blog/1353593/201910/1353593-20191016174012571-142777827.png)
4. Modify the root password: user.password = "password to be set"
5. Save Settings: user.save (do not forget to follow the exclamation point)!