解决Git Push 问题

189 阅读1分钟

出现的问题

$ git push -u origin master
fatal: unable to access 'https://github.com/username/demo.git/': Failed to connect to 127.0.0.1 port 61422: Connection refused

解决方法

先查询是否使用了全局代理

git config --global http.proxy

结果

http://127.0.0.1:61422

取消代理

git config --global --unset http.proxy