如何仅为特定存储库设置 GIT_SSL_NO_VERIFY? [英] How do I set GIT_SSL_NO_VERIFY for specific repos only?

查看:17
本文介绍了如何仅为特定存储库设置 GIT_SSL_NO_VERIFY?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用没有适当证书的 git 服务器,但我不想这样做

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

每次我进行 git 操作时.但我还想为其他 git 存储库启用 SSL.有没有办法将这个本地化到单个存储库?

every single time I do a git operation. But I would also like to leave SSL enabled for other git repositories. Is there a way to make this local to a single repo?

推荐答案

你可以做

git config http.sslVerify "false"

在您的特定存储库中,仅为该存储库禁用 SSL 证书检查.

in your specific repo to disable SSL certificate checking for that repo only.

这篇关于如何仅为特定存储库设置 GIT_SSL_NO_VERIFY?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆