How do I set GIT_SSL_NO_VERIFY for specific repos only?

前端 未结 11 2020
迷失自我
迷失自我 2020-12-02 03:12

I have to use a git server without proper certificates, but I don\'t want to have to do

env GIT_SSL_NO_VERIFY=true git command

every single

11条回答
  •  悲&欢浪女
    2020-12-02 03:53

    Like what Thirumalai said, but inside of the cloned repository and without --global. I.e.,

    1. GIT_SSL_NO_VERIFY=true git clone https://url
    2. cd
    3. git config http.sslVerify false

提交回复
热议问题