看自己代理软件的端口

比如

解决Git fatal: unable to access 'xxx.git/': Failed to connect to github.com port 443 after ***ms: Timed out

设置

git config --global http.proxy http://127.0.0.1:1087

成了

解决Git fatal: unable to access 'xxx.git/': Failed to connect to github.com port 443 after ***ms: Timed out

如果想取消

取消全局代理:

git config --global --unset http.proxy
 
git config --global --unset https.proxy

常用

git config --global http.proxy #查看git的http代理配置
git config --global https.proxy #查看git的https代理配置
git config --global -l #查看git的所有配置

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2021-09-07
相关资源
相似解决方案