SSL works with browser, wget, and curl, but fails with git

前端 未结 6 1718
北海茫月
北海茫月 2021-01-31 04:23

I have a website I am using to host redmine and several git repositories

This works perfectly for http, but I can\'t clone with https, i.e.

git clone htt         


        
6条回答
  •  心在旅途
    2021-01-31 05:22

    export GIT_SSL_NO_VERIFY=1

    From http://blog.breadncup.com/2011/06/09/skip-git-ssl-verification/

    WARNING: as some people mentioned, this disables verification, leaving you open to a sleuth of security issues. You shouldn't rely on it long-term but, in a pinch, it will get the job done.

提交回复
热议问题