git-Failed to connect to 127.0.0.1 port 7890: 拒绝连接

首先查看是否使用代理

git config --global http.proxy

将使用的代理取消掉

git config --global --unset http.proxy

1
2
3
4
5
➜  ~ git config --global http.proxy

127.0.0.1:7890
➜ ~ git config --global --unset http.proxy
➜ ~

更新: 2024-01-24 23:03:31
原文: https://www.yuque.com/zacharyblock/cx2om6/xv1hqiphn1w9xs7n