Setting up the SMTP Gmail service for the gitlab CE local server at ubuntu 14.04

If you would rather send application email via an SMTP server instead of via Sendmail, add the following configuration information to /etc/gitlab/gitlab.rb and run gitlab-ctl reconfigure.

 

gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.gmail.com"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "my.email@gmail.com"
gitlab_rails['smtp_password'] = "my-gmail-password"
gitlab_rails['smtp_domain'] = "smtp.gmail.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'peer' # Can be: 'none', 'peer', 'client_once', 'fail_if_no_peer_cert', see http://api.rubyonrails.org/classes/ActionMailer/Base.html

Don't forget to change my.email@gmail.com to your email address and my-gmail-password to your own password.


Creating Local GitLab Repo Server at ubuntu14.04

 

Ref: https://about.gitlab.com/downloads/#ubuntu1404

Creating / Uploading New Repository to Git

  1. Create a new repository at git with your account ( in browser )
  2. At terminal, go under your new repository folder
  3. git add * ( adding all your files to git )
  4. git commit -m “Initial commit” ( adding commit for your first commit )
  5. git remote add origin ssh://user@test.com/~owner/yourNewRepo.git
  6. git push -u origin master