title: gitlab - Push to a repository using access_token
body: <p>I implemented the oauth2 web flow in order to get access_token from users of my app. With the access_token, I would like to do the following actions:  </p>
  
  <ol>
  <li>Get user informations  </li>
  <li>Create a repo for this user  </li>
  <li>Push code to this repo (using git push  )</li>
  </ol>
  
  <p>I already successfully get the user information(1) and create a repo(2)</p>
  
  <p>The problem is I can't push code (3), I got "Unauthorized" error.  </p>
  
  <p>The command I run:</p>
  
  <pre><code>git remote add origin https://gitlab-ci-token&lt;mytoken&gt;@gitlab.com/myuser/myrepo.git  
  git push origin master
  </code></pre>