D.4. 高级 Git 配置
您可以使用命令行或编辑 .gitconfig
文件,为 TemplateSync 插件执行额外的 Git 配置。
接受自签名 Git 证书
如果您在 Git 服务器上使用自签名证书验证,请使用 git config http.sslCAPath
命令验证证书。
例如,以下命令验证存储在 /cert/cert.pem
中的自签名证书:
sudo -u foreman git config --global http.sslCAPath cert/cert.pem
# sudo -u foreman git config --global http.sslCAPath cert/cert.pem
有关高级选项的完整列表,请参阅 git-config
手册页。