赞
踩
git clone http://用户名:密码@地址
例子
如果你用户叫123xxx 密码是mypassword 地址是git.xxx.com/www.git
git clone http://123xxx:mypassword@git.xxx.com/www.git
fatal: unable to access 'http://abc@qq.com:abc123456@git.xxx.com/www.git/':
Couldn't resolve host 'qq.com:abc123456@git.xxx.com'
报错原因是因为用户名包含了@符号,所以需求要把@转码一下
<?php
$userame='abc@qq.com';
echo urlencode($userame);
?>
abc%40qq.com
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。