git clone https://username:password@host/organization/repository.git
例如
git clone https://123456:19970210@github.com/xintelligent/xuehua-api.git
使用上面这种方式的话,你必须的关闭二重验证,上面这种方式也是https clone,https clone时如果开启二重验证的话,在输入用户名和密码之后会提示auth验证错误。
所以如果你开启了二重验证的话,clone项目时只能使用ssh方式克隆。
网友评论