How do I set GIT_SSL_NO_VERIFY for specific repos only?

前端 未结 11 2013
迷失自我
迷失自我 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:51

    On Linux, if you call this inside the git repository folder:

    git config http.sslVerify false
    

    this will add sslVerify = false in the [http] section of the config file in the .git folder, which can also be the solution, if you want to add this manually with nano .git/config:

    ...
    [http]
      sslVerify = false
    

提交回复
热议问题