Skip to content

Instantly share code, notes, and snippets.

@iamucil
Created April 7, 2021 04:45
Show Gist options
  • Save iamucil/cf6ae7acf862116632351a915c384e6e to your computer and use it in GitHub Desktop.
Save iamucil/cf6ae7acf862116632351a915c384e6e to your computer and use it in GitHub Desktop.
How do I set GIT_SSL_NO_VERIFY for specific repos only?
fatal: unable to access 'https://baseurl/username/repo_name.git/': SSL certificate problem: unable to get local issuer certificate
error: Could not fetch upstream

Use this command to make git not verify ssl certificate. If you want to unverify all git repo use --global instead of --local. Run this inside your working directory.

git config --local http.sslVerify false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment