Unable to set the sslVerify to false

后端 未结 1 1427
悲哀的现实
悲哀的现实 2021-01-31 20:19

Actually I\'m trying to install an ngCordova plugin for SQLite. But its giving me the error: Unknown SSL protocol error in connection to github.com:443 while accessing https://

1条回答
  •  悲哀的现实
    2021-01-31 20:38

    The error message you mentioned from trying to set a configuration is printed when you try to set a local git configuration when you're not in a git repo. You'll need to either set a global (add --global flag) configuration or cd into an existing git repo to set it to just that repo.

    Ideally you want to limit the scope of the sslVerify "false" configuration, but if you're trying to get the initial clone you may need to set it as a global setting (temporarily) using:

    git config --global http.sslVerify "false"
    

    With that set you should be able to clone the repo, at which point I'd recommend unsetting it as a global configuration and setting it in your newly-cloned repo:

    git config --global --unset http.sslVerify
    cd 
    git config http.sslVerify "false"
    

    To verify what your configurations are set to after you're done you can run:

    git config --global --list
    git config --local --list
    

    0 讨论(0)
提交回复
热议问题