美文网首页
Git Clone 命令指定用户名密码

Git Clone 命令指定用户名密码

作者: Yvanna_15 | 来源:发表于2020-04-20 16:36 被阅读0次

通常企业内部 remote repository 会托管在 github或者gitlab平台上,在 Github 上 git clone 某一 repository 时,有https和ssh两种选择,https需要提供用户名和密码,可以使用个人或者公司提供的github用户名和密码。

如果clone非本地配置的用户名密码的项目,可以用嵌套了用户名:密码的git语句来clone项目。

格式git clone http://userName:password@链接地址
实例git clone https://用户名:密码@git.coding.net/sample/HelloWorld.git

相关文章

网友评论

      本文标题:Git Clone 命令指定用户名密码

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