与您可以设置的方式类似特定 URL 的 Git 配置选项 https://stackoverflow.com/a/23807432/1233435 like
git config http."https://code.example.com/".sslVerify false
我想为所有子域设置它们。如何使用通配符?以下似乎不起作用
git config http."https://*.mycompany.com/".sslCAInfo <downloaded certificate>.pem
如何使用通配符?
使用 Git 2.13(2017 年第 2 季度),您将能够使用通配符!
See commit a272b9e https://github.com/git/git/commit/a272b9e70a48a355b6dd7ff0179c11f8da7ef0f3, commit af99049 https://github.com/git/git/commit/af99049ca92f5a5d16d8cce9727b859ac5c9ee00, commit 3ec6e6e https://github.com/git/git/commit/3ec6e6e8a0870a32357689e2179d845700539623, commit 3e6a0e6 https://github.com/git/git/commit/3e6a0e64a47497d1addaf063e13865c67cbeb009, commit 3343995 https://github.com/git/git/commit/33439956b7f6f91434673d49e8c8af5c90b4a0fa (31 Jan 2017) by Patrick Steinhardt (pks-t) https://github.com/pks-t.
Helped-by: Junio C Hamano (gitster) https://github.com/gitster.
(Merged by Junio C Hamano -- gitster -- https://github.com/gitster in commit a411726 https://github.com/git/git/commit/a411726930a6fc97d5a1f62d8d8d59b8587b10f2, 27 Feb 2017)
urlmatch
:允许 URL 主机部分通配
The <url>
参与“http.<url>.<variable>
“配置变量
现在可以拼写为 '*
' 作为通配符。
E.g. "http.https://*.example.com.proxy
" 可用于指定
代理用于https://a.example.com
, https://b.example.com
等,即任意主机example.com
domain.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)