I'm trying clone a repository with http using the username and password lik e this:
git clone https://username:password@gitlab.com/user/repo.git
However I get this error:
fatal: unable to access 'https://username:password@gitlab.com/user/repo.git': Illegal port number
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.