不知道是否有同学遇到如下的问题:
git clone https://github.com/istester/ido.git #一个git仓库。
确收到如下报错:
Cloning into 'hosts'...
fatal: unable to access 'https://github.com/racaljk/hosts.git/': Failed to connect to 192.168.1.22 port 8080: Connection refused
如上,明明clone的github仓库代码,为何会收到无法链接内网的错误呢 ?
网上找了很多帖子,没啥直接的答案。
解决思路:
猜测是git的配置问题,先看看git的所有配置信息
git config --list
可以显示所有的配置信息。
[Ido-Ai