【Gitlab】git clone http连接,带用户名和密码

test项目在gitlab的http请求的url:

  http://gitlab.com/test.git

用以下方式请求不需要再输入用户名和密码

git clone  http://username:password@gitlab.com/test.git

密码不要包含@/等特殊符号,会跟后面的@gitlab.com冲突,导致clone失败

原文地址:https://www.cnblogs.com/jxd283465/p/11641823.html