git clone 使用用户名和密码

git clone 使用用户名和密码

一般git仓库的用户,都是用户名和密码登录,git clone命令如下

模板 git clone http://邮箱(或用户名):密码@仓库

git clone http://username:password@ip:port/xx/uem-vis-realtime.git

邮箱用户,git clone需要时注意如下:

注意: 邮箱中的 @ 要使用 %40 代替。仓库 URL 不需要 http://
示例:

邮箱 [email protected]
密码: xw
仓库: http://git.test.com/abc/demo

命令:

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

你可能感兴趣的:(java)