无法在我自己的 git 服务器中克隆我的存储库
Can not clone my repository in my own git server
我正在尝试从我自己的git实验室服务器中克隆我的存储库,但这就是我得到的
fatal: unable to access 'http://git.domain.com/user/repo.git/': Could not resolve host: git.domain.com
但是克隆在我的 git 服务器之外工作。
知道为什么我的服务器无法解析主机但其他机器可以吗?
添加
37.xx.xxx.xxx git.domain.com
至
/etc/hosts
文件解决了我的问题。
我正在尝试从我自己的git实验室服务器中克隆我的存储库,但这就是我得到的
fatal: unable to access 'http://git.domain.com/user/repo.git/': Could not resolve host: git.domain.com
但是克隆在我的 git 服务器之外工作。
知道为什么我的服务器无法解析主机但其他机器可以吗?
添加
37.xx.xxx.xxx git.domain.com
至
/etc/hosts
文件解决了我的问题。