我正在尝试使用用户名和密码使用http克隆一个存储库,如下所示:
git clone https://username:password@gitlab.com/user/repo.git
然而,我得到了这个错误:
fatal: unable to access 'https://username:password@gitlab.com/user/repo.git': Illegal port number
我正尝试在一个使用AWS Linux的EC2实例上执行此操作。如果我手动执行此操作,并且只在克隆中使用用户名,然后在提示符处输入密码,则可以正常工作,但我正在尝试使用bash