本机环境: Ubuntu Desktop 19.10
最近给vim折腾插件的时候,在克隆github代码的时候发现了一些问题,如下:
fatal: unable to access 'https://github.com/VundleVim/Vundle.vim.git/': Failed to connect to 127.0.0.1 port 2870: Connection refused
于是在网上查找了一些解决上述问题的办法
一、Git限制了推送数据的大小导致的错误
解决:重新设置通信缓存大小
git config http.postBuffer 524288000
或者
git config --global http.postBuffer 524288000
二、GitHub.com无法访问,连接超时
因为用的是国内源,有理由怀疑连接不到github.com,于是尝试ping一下百度。
ping