如何为所有子域设置Git配置选项?

bbo*_*ler 4 git ssl github

类似于您如何设置的Git配置选项为特定的URL

git config http."https://code.example.com/".sslVerify false

我想为所有子域设置它们.我该如何使用通配符?以下似乎不起作用

git config http."https://*.mycompany.com/".sslCAInfo <downloaded certificate>.pem

Von*_*onC 7

我该如何使用通配符?

使用Git 2.13(2017年第二季度),您将能够使用通配符!

请参阅Patrick Steinhardt()提交a272b9e,提交af99049,提交3ec6e6e,提交3e6a0e6,提交3343995(2017年1月31日). 帮助:Junio C Hamano().(通过合并JUNIOÇ滨野- -提交a411726 2月27日2017)pks-t
gitster
gitster

urlmatch:允许URL主机部分的globbing

<url>" http.<url>.<variable>"配置变量中的部分现在可以拼写为' *'作为通配符.

如" http.https://*.example.com.proxy"可以用来指定为代理https://a.example.com,https://b.example.com等等,即在任何主机example.com域名.