git 指定用户名克隆clone仓库

git使用用户名密码clone的方式:

git clone http://username:password@remote

eg: username:  abc@qq.com, pwd: test, git地址为git@xxx.com/test.git

git clone http://abc%40qq.com:test@git@xxx.com/test.git

注意:用户名密码中一定要转义 @符号转码后变成了%40

转自:https://www.cnblogs.com/tonyauto/p/10722563.html

原文地址:https://www.cnblogs.com/leeke/p/13520972.html