Git clone直接提交用户名和密码
git使用用户名密码clone的方式:
git clone http://username:password@remote
例如:我的用户名是abc@qq.com,密码是abc123456,git地址为git@xxx.com/www.git
git clone http://abc@qq.com:abc123456@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'
报错原因是因为用户名包含了@符号,所以需求要把@转码一下
