git clone私人仓库时自动带上帐号密码验证

目的

使用一行命令进行clone一个私人的仓库(https),之前未曾设置过任何私钥或者其他相关配置信息

原理

cloneurl上,附带帐号密码验证即可

实现

$ git clone https://用户:密码@git.coding.net/git/repo.git


git clone http://boring:boring123@221.993.32.21:31567/repo/treatment.git

 

posted @ 2020-05-12 16:26  Oops!#  阅读(999)  评论(0编辑  收藏  举报