波神

导航

git https解决免ssL和保存密码

1、打开windows的git bash

set GIT_SSL_NO_VERIFY=true git clone
git config --global http.sslVerify false 

2、保存密码

永久保存

git config --global credential.helper store

设置记住密码(默认15分钟)

如果想自己设置缓存时间,可以这样做:

git config credential.helper ‘cache –timeout=3600

 

posted on 2019-05-15 23:11  波神  阅读(1515)  评论(0编辑  收藏  举报