How to reset GitLab root or any user password with Rails console

I have forgot GitLab root password for my team GitLab Instance, but i can access server, Here is a my recap step Prerequisites: Step: If you want to set random password change line new_password = ‘P@3sw0rd’ with new_password = ::User.random_password Reference








