【发布时间】:2017-08-22 12:41:51
【问题描述】:
我的服务器有 DNS 问题,找不到“Github.com”。我必须改用 Github 的 IP 地址。但是当我尝试像这样使用 IP 地址时:
git remote set-url origin http://192.30.253.113/foo/bar.git
当我尝试推送到原点时,会发生这种情况:
git push origin master
致命:无法访问“https://192.30.253.113/foo/bar.git/”:SSL:证书主题名称(github.com)与目标主机名“192.30.253.113”不匹配
【问题讨论】:
标签: git github ssl-certificate git-remote ubuntu-server