Git

From aoxoaWiki
Jump to: navigation, search

git is a modern source code control system.


Topics

Resetting Passwords from the Console

Reference: Resetting Passwords

 cd /var/opt/gitlab
 gitlab-rails console production

Find user either by id, or by email:

  user = User.where(id: 1).first

or

  user = User.find_by(email: 'dan@aoxoa.com')

Change password (must do both!)

  user.password = 'newPassword'
  user.password_confirmation = 'newPassword'

Save:

  user.save!


Online Resources

Lars Vogel's git Tutorial



Back to Main Page