git clone http://用户名:密码@仓库
示例:
用户名: xw@qq.com
密码: xw
仓库: http://git.test.com/abc/demo
注意: 用户名中的 @ 要使用 %40 代替。仓库 URL 不需要 http:// 。
命令:
git clone http://xw%40qq.com:xw@git.test.com/abc/demo
原文:https://www.cnblogs.com/daysme/p/11038988.html