美文网首页
git clone携带用户名密码

git clone携带用户名密码

作者: PENG先森_晓宇 | 来源:发表于2020-03-26 09:46 被阅读0次
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方式克隆。

相关文章

网友评论

      本文标题:git clone携带用户名密码

      本文链接:https://www.haomeiwen.com/subject/bxsquhtx.html