git clone 使用用户名和密码

git clone http://用户名:密码@仓库

示例:

用户名: [email protected]
密码: xw
仓库: http://git.test.com/abc/demo
注意: 用户名中的 @ 要使用 %40 代替。仓库 URL 不需要 http:// 。

命令:

git clone http://xw%40qq.com:[email protected]/abc/demo

猜你喜欢

转载自www.cnblogs.com/daysme/p/11038988.html