title: Git Clone: Illegal Port Number
body: <p>I'm trying clone a repository with http using the username and password lik e this:</p>
  
  <pre><code>git clone https://username:password@gitlab.com/user/repo.git
  </code></pre>
  
  <p>However I get this error:</p>
  
  <pre><code>fatal: unable to access 'https://username:password@gitlab.com/user/repo.git': Illegal port number
  </code></pre>
  
  <p>I'm trying to do this on a EC2 Instance that is using AWS Linux.
  I can get this working if I do it manually, and use only the username in the clone and then put the password to the prompt, but I'm trying to clone the repository with a bash script.</p>