title: gitlab - push using https, specifying username & password
body: <p>I am trying to push a newly created repository to gitlab. Here's what I did:</p>
  
  <ol>
  <li><p>Create a project in gitlab. Example URL: <a href="https://gitlab.example.com/group1/project1.git" rel="noreferrer">https://gitlab.example.com/group1/project1.git</a></p></li>
  <li><p>Initiated a local bare repo:</p>
  
  <pre><code>cd ~/projects
  git init --bare ./project1.git
  cd project1.git
  </code></pre></li>
  </ol>
  
  <p><strong>Question:</strong></p>
  
  <p>Next step is to push all of my local repo into gitlab. 
  But I want to specify username and password using https. How do I change the following to do it? </p>
  
  <pre><code>git remote add origin https://gitlab.example.com:group1/project1.git
  git push --all
  git push --tags
  </code></pre>