title: GitLab - Git pull command with username and password in CI
body: <p>I have configured my CI pipeline to remote via SSH into a server and update the git repository there with the latest changes. However it fails. Because when the CI runs the <code>git pull</code> command, the response is : "could not read Username for '<a href="https://gitlab.com" rel="nofollow noreferrer">https://gitlab.com</a>' "</p>
  
  <p><strong>My question is: Is there a way to run git pull which includes username and password in one single command?</strong></p>
  
  <p>I know the best way is to add the SSH key into gitlab variables to avoid asking for username and password, but that didn't work for me either. so my only option would be to provide username and password.</p>
  
  <p>My gitlab-ci.yml file is like below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>deploy_staging:
    stage: deploy
    before_script:
     - mkdir -p ~/.ssh
     - echo -e "$DEPLOY_KEY" &gt; ~/.ssh/id_rsa
     - chmod 600 ~/.ssh/id_rsa
     - '[[ -f /.dockerenv ]] &amp;&amp; echo -e "Host *\n\tStrictHostKeyChecking no\n\n" &gt; ~/.ssh/config'
    script:
      - ssh ubuntu@example.com "
        cd my_Project &amp;&amp;
        git pull
        "</code></pre>
  </div>
  </div>
  </p>