Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:

git pull 和 git push 报错 Connecting to e.coding.net (port 9418) … fatal: unable to connect to e.coding.net:

因为我之前的其他项目配置了:
url.git://.insteadof=https://
url.https://.insteadof=git://
url.https://github.com.insteadof=git://github.com
把这些配置删掉就可以了

查看git 配置

git config --list

Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:_第1张图片

Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:_第2张图片
Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:_第3张图片
因为我设置的是全局的git config,所以我找到的global,如果设置的是local就找local,应该是
Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:_第4张图片
然后打开这个文件后
Connecting to e.coding.net (port 9418) ... fatal: unable to connect to e.coding.net:_第5张图片

你可能感兴趣的:(github)