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

猜你喜欢

转载自www.cnblogs.com/boshen-hzb/p/10872846.html